Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 20 additions & 22 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
name: Docs

on:
#push:
# branches-ignore:
# - '**'
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: macos-latest

runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install Requirements
run: brew install doxygen
&& brew install sphinx-doc
&& pip3 install sphinx-rtd-theme
&& pip3 install breathe
&& pip3 install sphinx-sitemap
- name: Checkout Repo
uses: actions/checkout@1.0.0
- name: Build Docs
run: cd docs
&& make html
&& cd temp_build/html
&& touch .nojekyll
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v3
- name: Install Doxygen
uses: ssciwr/doxygen-install@v1
- name: Install Dependencies
run: |
pip install sphinx sphinx_rtd_theme sphinx-sitemap breathe docutils
- name: Sphinx Build
run: |
cd docs
make html
cd temp_build/html
touch .nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/temp_build/html # The folder the action should deploy.
folder: docs/temp_build/html # The folder the action should deploy
2 changes: 1 addition & 1 deletion docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = strutil
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 1.0.2
PROJECT_NUMBER = 2.0.0

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = temp_build

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
author = u'Tomasz Gałaj'

# The short X.Y version
version = u''
version = u'2.0'
# The full version, including alpha/beta/rc tags
release = u''

Expand Down Expand Up @@ -228,7 +228,7 @@
# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}

# -- Options for todo extension ----------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
strutil
=======

Easy to use, header only C++ 17 std::string utility library.
Easy to use, header only C++ 20 std::string utility library.

Any constructive comments and improvements to this little library are more than welcome.

Expand Down
5 changes: 5 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
breathe>=4.29.0
sphinx>=6.1.3
docutils>=0.19
sphinx_rtd_theme
sphinx-sitemap