File tree Expand file tree Collapse file tree 7 files changed +47
-78
lines changed Expand file tree Collapse file tree 7 files changed +47
-78
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ jobs:
146
146
asset_path : ${{env.PKG_SDIST_PATH}}
147
147
asset_name : pip-${{env.SDIST_PKG_NAME}}-${{env.PKG_VERSION}}.tar.gz
148
148
asset_content_type : application/gzip
149
+ # Open Source documentation deploy workflow
149
150
deploy-docs :
150
151
if : github.event_name == 'push'
151
152
needs : build
@@ -155,16 +156,5 @@ jobs:
155
156
- uses : actions/setup-python@v2
156
157
with :
157
158
python-version : 3.x
158
- - run : pip install mkdocs-material mkdocs-redirects mkdocstrings mkdocstrings-python # mike
159
+ - run : pip install mkdocs-material mkdocs-redirects mkdocstrings mkdocstrings-python
159
160
- run : mkdocs gh-deploy --force --config-file ./docs/mkdocs.yml
160
- # Mike workflow - replaces line 157. Must enable mike on line 156.
161
- # - run: |
162
- # git fetch origin gh-pages --depth=1
163
- # git config user.name {GITHUB USER}
164
- # git config user.email {GITHUB EMAIL}
165
-
166
- # # Only run the first time:
167
- # mike delete --all
168
-
169
- # mike deploy --push --force --update-aliases {VERSION} latest
170
- # mike set-default --push latest
Original file line number Diff line number Diff line change 1
1
# docker-compose -f docs/docker-compose-docs-serve.yaml up --build
2
+ # navigate to http://localhost/
2
3
version : " 2.4"
3
4
services :
4
5
docs :
@@ -10,12 +11,12 @@ services:
10
11
volumes :
11
12
- ..:/main
12
13
ports :
13
- - 8080:8080
14
+ - 80:80
14
15
command :
15
16
- bash
16
17
- -c
17
18
- |
18
19
pwd
19
20
mkdocs --version
20
- mkdocs serve --config-file ./docs/mkdocs.yml -a 0.0.0.0:8080
21
- # tail -f /dev/null
21
+ mkdocs serve --config-file ./docs/mkdocs.yml -a 0.0.0.0:80
22
+ # tail -f /dev/null
Original file line number Diff line number Diff line change 1
- FROM python:latest
1
+ FROM python:slim
2
2
3
3
WORKDIR /main
4
- COPY . /main
4
+ COPY ./docs /main
5
+ COPY ./element_array_ephys /main
6
+ COPY requirements.txt /main
7
+ COPY setup.py /main
5
8
RUN pip install mkdocs-material mkdocs-redirects mkdocstrings mkdocstrings-python
Original file line number Diff line number Diff line change 1
1
site_name : Element Array Ephys
2
- repo_url : https://github.com/A-Baji /element-array-ephys
3
- repo_name : A-Baji /element-array-ephys
2
+ repo_url : https://github.com/datajoint /element-array-ephys
3
+ repo_name : datajoint /element-array-ephys
4
4
docs_dir : ./src/
5
5
6
6
theme :
23
23
name : Switch to light mode
24
24
25
25
nav :
26
- - Element Array Ephys : index.md
26
+ - Element Array Ephys : getting_started/ index.md
27
27
- Getting Started :
28
28
- Installation : getting_started/index.md
29
29
- Set Up : getting_started/setup.md
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {% set class = "md-nav md-nav--primary" %}
2
+ {% if "navigation.tabs" in features %}
3
+ {% set class = class ~ " md-nav--lifted" %}
4
+ {% endif %}
5
+ {% if "toc.integrate" in features %}
6
+ {% set class = class ~ " md-nav--integrated" %}
7
+ {% endif %}
8
+ < nav class ="{{ class }} " aria-label ="{{ lang.t('nav.title') }} " data-md-level ="0 ">
9
+ < label class ="md-nav__title " for ="__drawer ">
10
+ < a href ="{{ config.extra.homepage | d(nav.homepage.url, true) | url }} " title ="{{ config.site_name | e }} "
11
+ class ="md-nav__button md-logo " aria-label ="{{ config.site_name }} " data-md-component ="logo ">
12
+ {% include "partials/logo.html" %}
13
+ </ a >
14
+ {#-
15
+ Add DataJoint home link to navigation header, otherwise unchanged
16
+ -#}
17
+ < a href ="https://www.datajoint.org/ " title ="DataJoint ">
18
+ ⬅ Home
19
+ </ a >
20
+ </ label >
21
+ {% if config.repo_url %}
22
+ < div class ="md-nav__source ">
23
+ {% include "partials/source.html" %}
24
+ </ div >
25
+ {% endif %}
26
+ < ul class ="md-nav__list " data-md-scrollfix >
27
+ {% for nav_item in nav %}
28
+ {% set path = "__nav_" ~ loop.index %}
29
+ {% set level = 1 %}
30
+ {% include "partials/nav-item.html" %}
31
+ {% endfor %}
32
+ </ ul >
33
+ </ nav >
You can’t perform that action at this time.
0 commit comments