Skip to content

Commit 6e191a8

Browse files
committed
Initial push
1 parent d98993f commit 6e191a8

File tree

259 files changed

+29637
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+29637
-54
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- uses: actions/setup-python@v3
1414
- name: Install dependencies
1515
run: |
16-
pip install sphinx sphinx_rtd_theme myst_parser pydata-sphinx-theme
16+
pip install sphinx sphinx_rtd_theme pydata-sphinx-theme sphinx-design
1717
- name: Sphinx build
1818
run: |
19-
sphinx-build doc _build
19+
sphinx-build docs _build
2020
- name: Deploy to GitHub Pages
2121
uses: peaceiris/actions-gh-pages@v3
2222
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc/index.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/.DS_Store

6 KB
Binary file not shown.

docs/_static/css/custom.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
/* Add horizontal ruler below Header level 1 */
3+
h1
4+
{
5+
border-bottom:3px solid #CCC;
6+
padding-bottom:3px;
7+
}
8+
9+
/* Add horizontal ruler below Header level 2 */
10+
h2
11+
{
12+
border-bottom:3px solid #CCC;
13+
padding-bottom:3px;
14+
}
15+
16+
/* Stretch central panel to fit to maximum width */
17+
18+
.bd-main .bd-content .bd-article-container {
19+
max-width: 100%; /* default is 60em */
20+
}
21+
22+
/* Shrinks the left sidebar so it takes up less space */
23+
.bd-sidebar-primary {
24+
width: 20%
25+
26+
}
27+
28+
/* Change link colors to blue, among other things */
29+
html[data-theme="light"] {
30+
--pst-color-primary: blue;
31+
}
32+
33+
html[data-theme="dark"] {
34+
--pst-color-primary: rgb(0, 174, 255);
35+
}

doc/conf.py renamed to docs/conf.py

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = "Demo for Sphinx Documentation"
21-
copyright = "N/A"
20+
project = "BioTeam Sphinx Demo"
21+
copyright ="BioTeam Inc"
2222
author = "Jordan Ramsdell"
23-
github_user = "bioteam"
23+
github_user = "jramsdell"
2424
github_repo_name = "sphinx-documentation-demo" # auto-detected from dirname if blank
2525
github_version = "main"
26-
conf_py_path = "/doc/" # with leading and trailing slash
26+
conf_py_path = "/docs/" # with leading and trailing slash
2727

2828
# -- General configuration ---------------------------------------------------
2929

@@ -33,6 +33,7 @@
3333
extensions = [
3434
# githubpages just adds a .nojekyll file
3535
"sphinx.ext.githubpages",
36+
"sphinx_design"
3637
]
3738

3839
# Settings for myst_nb:
@@ -56,21 +57,43 @@
5657

5758

5859
# -- Options for HTML output -------------------------------------------------
60+
html_theme = "pydata_sphinx_theme" # To install a new theme, you have to pip install it first
5961

60-
# The theme to use for HTML and HTML Help pages. See the documentation for
61-
# a list of builtin themes.
62-
#
63-
html_theme = "pydata_sphinx_theme"
62+
html_theme_options = {
63+
"use_edit_page_button": False,
64+
"show_toc_level": 4,
65+
66+
67+
# SHOW_NAV_LEVEL: Normally for the left sidebar, deeply nested items are collapsed.
68+
# We can change the defualt maximum depth by changing the nav level
69+
"show_nav_level": 2,
70+
# "navbar_center": ["navbar-nav"],
71+
72+
# LOGO: This determines the text (and icon, if you have one) that you see
73+
# in the upper left-hand corner of the page
74+
"logo": {
75+
"text": "BioTeam Sphinx Demo"
76+
}
77+
}
78+
html_show_sourcelink = False
6479

6580
# Add any paths that contain custom static files (such as style sheets) here,
6681
# relative to this directory. They are copied after the builtin static files,
6782
# so a file named "default.css" will overwrite the builtin "default.css".
68-
#html_static_path = ['css']
83+
html_static_path = ['_static']
84+
html_css_files = [
85+
'css/custom.css'
86+
]
6987

7088

7189
# HTML context:
7290
from os.path import basename, dirname, realpath
7391

92+
93+
# html_sidebars = {
94+
# "**": ["globaltoc.html"]
95+
# }
96+
7497
html_context = {
7598
"display_github": True,
7699
"github_user": github_user,
@@ -81,23 +104,3 @@
81104
"conf_py_path": conf_py_path,
82105
}
83106

84-
import os
85-
if os.environ.get('GITHUB_REF', '') == 'refs/heads/'+github_version:
86-
html_js_files = [
87-
('https://plausible.cs.aalto.fi/js/script.js', {"data-domain": "coderefinery.github.io", "defer": "defer"}),
88-
]
89-
90-
# Intersphinx mapping. For example, with this you can use
91-
# :py:mod:`multiprocessing` to link straight to the Python docs of that module.
92-
# List all available references:
93-
# python -msphinx.ext.intersphinx https://docs.python.org/3/objects.inv
94-
# extensions.append('sphinx.ext.intersphinx')
95-
# intersphinx_mapping = {
96-
# #'python': ('https://docs.python.org/3', None),
97-
# #'sphinx': ('https://www.sphinx-doc.org/', None),
98-
# #'numpy': ('https://numpy.org/doc/stable/', None),
99-
# #'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
100-
# #'pandas': ('https://pandas.pydata.org/docs/', None),
101-
# #'matplotlib': ('https://matplotlib.org/', None),
102-
# 'seaborn': ('https://seaborn.pydata.org/', None),
103-
# }

docs/guides/demo_notebook.rst

Lines changed: 4 additions & 0 deletions

docs/guides/guide_installation.rst

Lines changed: 4 additions & 0 deletions

docs/guides/index.rst

Lines changed: 23 additions & 0 deletions

0 commit comments

Comments
 (0)