diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index aac8843ce..654c821d6 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v1 - run: pip install sphinx - run: pip install myst-parser + - run: pip install sphinx-rtd-theme - run: sudo apt install gettext - run: pip install sphinx-intl - name: sphinx build(ja) diff --git a/docs/conf.py b/docs/conf.py index 8c34dc5f7..8614c5922 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,7 +47,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'nature' +html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, @@ -57,6 +57,12 @@ html_static_path = ['_static'] locale_dirs = ['locale/'] gettext_compact = False -html_context = {"language": language} - github_url = "https://github.com/vrm-c/UniVRM" + +html_context = { + "language": language, + 'display_github': True, + 'github_user': 'vrm-c', + 'github_repo': 'UniVRM', + 'github_version': 'master/docs/' +}