Skip to content

Commit

Permalink
[doc] updated the sphinx theme (#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankLeeeee committed Feb 8, 2023
1 parent 90a9fdd commit d348039
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
author = 'HPC-AI Technology Inc.'

# The full version, including alpha/beta/rc tags
release = '0.0.1'

# release = '0.0.1'

# -- General configuration ---------------------------------------------------

Expand Down Expand Up @@ -64,14 +63,14 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_book_theme'
html_show_sourcelink = False
html_theme_options = {
'navigation_depth': 3,
}

html_context = {
'display_github': False,
'display_github': True,
'github_user': 'hpcaitech',
'github_repo': 'ColossalAI',
# 'github_version': 'master/docs/',
Expand All @@ -90,7 +89,10 @@
source_suffix = ['.rst', '.md', '.MD']

import inspect

import colossalai


def linkcode_resolve(domain, info):
"""
Determine the URL corresponding to Python object
Expand Down
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tensorboard
apex
sphinx
sphinx-rtd-theme
tensorboard
apex
sphinx
myst-parser
sphinx-book-theme

0 comments on commit d348039

Please sign in to comment.