Skip to content

Commit dd39966

Browse files
committed
Standardize documentation sites
1 parent 7699ef1 commit dd39966

9 files changed

+771
-224
lines changed

LICENSE

+427
Large diffs are not rendered by default.

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ verify_ssl = true
55

66
[packages]
77
sphinx = "*"
8-
pydata-sphinx-theme = "0.3.1"
8+
pydata-sphinx-theme = "0.13.3"
99
sphinx-tabs = "*"
1010
make = "*"

Pipfile.lock

+201-117
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.rst

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
=========
2-
Template for Open Ephys Documentation
2+
Documentation for the Open Ephys GUI
33
=========
44

55
This documentation's source template was taken from the `Spinal HDL <https://github.com/SpinalHDL/SpinalDoc-RTD>`_ project.
66

77
The theme is based on the `PyData Sphinx Theme <https://pydata-sphinx-theme.readthedocs.io/en/latest/>`_
88

9+
For more detailed usage instructions, see the `Open Ephys Doc Template <https://github.com/open-ephys/doc-template>`_
10+
911
How to build this documentation
1012
===============================
1113

1214
With pipenv (recommended)
1315
-----------
14-
Requirements (system)
15-
16-
* make
1716

1817
Requirements (Python 3):
1918

@@ -58,8 +57,7 @@ Requirements (system):
5857
Requirements (Python 3):
5958

6059
* sphinx
61-
* sphinx-rtd-theme
62-
* sphinxcontrib-wavedrom
60+
* pydata-sphinx-theme=="0.13.3"
6361

6462
After installing the requirements you can run
6563

@@ -70,13 +68,3 @@ After installing the requirements you can run
7068
make latexpdf # for latex (will require latexpdf installed)
7169
make # list all the available output format
7270
73-
Continuous Integration(CI)
74-
==========================
75-
76-
This repo uses Travis for its CI needs.
77-
If you want have a gh-pages preview on your fork, you need to activate your repo on Travis admin page.
78-
After that you only need add ``GITHUB_TOKEN`` as Environment Variable with your Github personal token (you only need grant repo/public_repo access)
79-
More details here:
80-
81-
* `Defining variables <https://docs.travis-ci.com/user/environment-variables/#defining-variables-in-repository-settings>`_
82-
* `Deploy to gh-pages <https://docs.travis-ci.com/user/deployment/pages/>`_

source/_static/images/oe_logo_gui.svg

-1
This file was deleted.
+1
Loading

source/_static/theme_overrides.css

+78-9
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,81 @@
5858
margin-right: 10px;
5959
}
6060

61+
.search-button {
62+
color: white !important;
63+
margin-right: 30px;
64+
}
65+
66+
6167
.navbar a:hover {
6268
color: #f9f2d5 !important;
6369
transition-duration: 0.4s;
6470
}
6571

66-
/* left side links */
72+
73+
/* Landing page cards */
74+
.card-columns {
75+
column-count: 4 !important;
76+
}
77+
78+
.card-title {
79+
margin: 1rem;
80+
}
81+
82+
.intro-card .card-text {
83+
margin:20px 0px;
84+
color: var(--onix-txt-color) !important;
85+
}
86+
87+
.card-img-top {
88+
margin-top: 2em;
89+
}
90+
91+
.card {
92+
border: 0;
93+
}
94+
95+
.intro-card {
96+
transition: transform 0.2s ease;
97+
border: 0;
98+
}
99+
100+
.intro-card:hover {
101+
transform: scale(1.05);
102+
}
103+
104+
.col-lg-6 {
105+
margin-top: 2em;
106+
}
107+
108+
/* Gallery cards */
109+
110+
.gallery-card .card-header {
111+
height: 100%;
112+
margin-top: 0rem;
113+
align-items: center;
114+
justify-content: center;
115+
text-align: center;
116+
} /* example of the default height for title */
117+
118+
.bd-content {
119+
flex-grow: 1;
120+
max-width: 100%;
121+
}
122+
123+
.bd-page-width {
124+
max-width: 100rem;
125+
}
126+
127+
.bd-sidebar-primary {
128+
width: 20%;
129+
}
130+
131+
strong {
132+
font-weight: bold;
133+
}
134+
135+
/* left side links
67136
.bd-links>.active a {
68137
color: #3c81be !important;
69138
transition-duration: 0.4s;
@@ -73,35 +142,35 @@
73142
color: #5fb5dc !important;
74143
transition-duration: 0.4s;
75144
transform: translate(2px, 0px);
76-
}
145+
}*/
77146

78-
/* right side links */
147+
/* right side links
79148
.toc-entry>.nav-link.active {
80149
font-weight: 600;
81150
color: #344b39;
82151
background-color: transparent;
83152
border-left: 2px solid #da714a;
84-
}
153+
}*/
85154

86-
/* body links (external) */
155+
/* body links (external)
87156
a.reference.external {
88157
color: #9a5035;
89158
}
90159
91160
a.reference.external:hover {
92161
color: #da714a;
93162
text-decoration: none;
94-
}
163+
}*/
95164

96-
/* body links (internal) */
165+
/* body links (internal)
97166
a.reference.internal {
98167
color: #3c81be;
99168
}
100169
101170
a.reference.internal:hover {
102171
color: #5fb5dc;
103172
text-decoration: none;
104-
}
173+
}*/
105174

106175
/* header links */
107176
a.headerlink {
@@ -279,7 +348,7 @@ h6 {
279348
/* logo */
280349
.navbar-brand {
281350
position: relative;
282-
height: 50px;
351+
height: 70px;
283352
width: auto;
284353
}
285354

source/conf.py

+27-11
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
# Add any Sphinx extension module names here, as strings. They can be
4141
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4242
# ones.
43-
extensions = ["sphinx.ext.todo", "sphinx.ext.githubpages"]
43+
extensions = ["sphinx.ext.todo",
44+
"sphinx.ext.githubpages"]
4445

4546

4647
# Add any paths that contain templates here, relative to this directory.
@@ -59,7 +60,7 @@
5960
#
6061
# This is also used if you do content translation via gettext catalogs.
6162
# Usually you set "language" from the command line for these cases.
62-
language = None
63+
language = 'en'
6364

6465
# List of patterns, relative to source directory, that match files and
6566
# directories to ignore when looking for source files.
@@ -77,15 +78,22 @@
7778
# a list of builtin themes.
7879
#
7980
html_theme = "pydata_sphinx_theme"
80-
html_logo = "_static/images/oe_logo_gui.svg"
81+
html_logo = "_static/images/oe_logo_name.svg"
8182
html_scaled_image_link = True
8283
html_title = project
84+
html_show_sourcelink = True
8385

8486
# Add any paths that contain custom static files (such as style sheets) here,
8587
# relative to this directory. They are copied after the builtin static files,
8688
# so a file named "default.css" will overwrite the builtin "default.css".
8789
html_static_path = ["_static"]
8890

91+
html_sidebars = {
92+
'index': ['search-field.html'],
93+
"**": ["sidebar-nav-bs.html"]
94+
}
95+
96+
8997
html_css_files = ['theme_overrides.css']
9098

9199
#html_style = "_static/theme_overrides.css"
@@ -177,11 +185,22 @@
177185
# further. For a list of options available for each theme, see the
178186
# documentation.
179187
html_theme_options = {
180-
"github_url": "https://github.com/open-ephys",
188+
'use_edit_page_button': True,
181189
"navigation_with_keys": True,
182190
"navbar_end": ["navbar-icon-links"],
183-
"navbar_align": "content"
184-
# 'search_bar_position' : "navbar",
191+
"navbar_align": "content",
192+
"footer_start": ["copyright"],
193+
'icon_links': [
194+
dict(name='GitHub',
195+
url='https://github.com/open-ephys/commutator-docs',
196+
icon='fab fa-github'),
197+
dict(name='Twitter',
198+
url='https://twitter.com/openephys',
199+
icon='fab fa-twitter'),
200+
dict(name='Discord',
201+
url='https://discord.gg/WXAx2URNQU',
202+
icon='fab fa-discord')
203+
],
185204
#'canonical_url': '',
186205
#'analytics_id': '',
187206
#'logo_only': False,
@@ -202,15 +221,12 @@
202221

203222
html_context = {
204223
"github_user": "open-ephys",
205-
"github_repo": "doc-template",
206-
"github_version": "master",
224+
"github_repo": "gui-docs",
225+
"github_version": "main",
207226
"doc_path": "source",
208227
"default_mode": "light"
209228
}
210229

211-
212-
html_show_sourcelink = False
213-
214230
linkcheck_anchors = False
215231

216232
extensions.append("sphinx_tabs.tabs")

0 commit comments

Comments
 (0)