Skip to content

Commit

Permalink
docs: add theme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed May 19, 2019
1 parent fafe4f9 commit b8a69fe
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
10 changes: 9 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,15 @@
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'header_links' : [
('Home', 'index', False, 'home'),
("GitHub", "https://github.com/zhenghaoz/gorse", True, 'code'),
("GoDoc", "https://godoc.org/github.com/zhenghaoz/gorse", True, 'book')
],
'primary_color': 'blue',
'show_drawer_title': False
}

# 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,
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ <h4><a href="https://godoc.org/github.com/zhenghaoz/gorse" target="_blank"><i
<p class="grey-text text-darken-1 start-paragraph-text">GoDoc</p>
</div>
<div class="col s4 m3 center">
<h4><a href="https://github.com/zhenghaoz/gorse/wiki" target="_blank"><i
<h4><a href="https://gorse.readthedocs.io/en/latest/" target="_blank"><i
class="fas fa-book-open blue-text" style="font-size: 3.2rem"></i></a></h4>
<p class="grey-text text-darken-1 start-paragraph-text">Wiki</p>
<p class="grey-text text-darken-1 start-paragraph-text">ReadTheDocs</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -185,4 +185,4 @@ <h4><a href="https://t.me/zhenghaoz" target="_blank"><i class="fab fa-telegram b
M.AutoInit();
</script>
</body>
</html>
</html>
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx-materialdesign-theme==0.1.11

0 comments on commit b8a69fe

Please sign in to comment.