Skip to content

Commit

Permalink
Merge pull request #11 from NewTec-GmbH/feature/show_version
Browse files Browse the repository at this point in the history
Show Documentation Version
  • Loading branch information
gabryelreyes authored Oct 29, 2024
2 parents cc2674e + f154f72 commit e34e534
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'release' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"Python Requirements",
"NPM Requirements"
"Install Python Requirements",
"Install NPM Requirements"
],
"group": {
"kind": "none"
Expand Down
21 changes: 14 additions & 7 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,30 @@

import os.path
import platform
import subprocess
git_version = subprocess.check_output(
['git', 'describe', 'HEAD', '--tags', '--always'])

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "gitWorkInstructions"
copyright = "2024 - present, NewTec GmbH"
author = "NewTec GmbH"
release = "1.1.0"
release = git_version.decode()
version = release # Do not differenciate between release and version
conf_py_path = "/doc/" # with leading and trailing slashes

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinxcontrib.mermaid", # Mermaid diagrams
"sphinxcontrib.plantuml", # Plantuml diagrams
"myst_parser", # MyST markdown parser
"sphinx_rtd_dark_mode", # Dark mode
"sphinx_copybutton", # Copy button
"sphinx_togglebutton" # Toggle button
"sphinxcontrib.mermaid", # Mermaid diagrams
"sphinxcontrib.plantuml", # Plantuml diagrams
"myst_parser", # MyST markdown parser
"sphinx_rtd_dark_mode", # Dark mode
"sphinx_copybutton", # Copy button
"sphinx_togglebutton" # Toggle button
]

templates_path = ["_templates"]
Expand All @@ -41,6 +45,9 @@
# HTML theme and static files
html_theme = "sphinx_rtd_theme"
html_last_updated_fmt = "%b %d, %Y"
html_theme_options = {
'style_external_links': True
}

html_static_path = ["_static"]
html_css_files = [
Expand Down

0 comments on commit e34e534

Please sign in to comment.