Skip to content

Commit c873231

Browse files
committed
Most recent updates mirroring DLC
1 parent cb8bc96 commit c873231

67 files changed

Lines changed: 88 additions & 23481 deletions

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ ENV/
8181

8282
# mkdocs documentation
8383
/site
84+
site
8485

8586
# mypy
8687
.mypy_cache/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
44

5+
## [0.2.0] - 2022-10-21
6+
+ Add - mkdocs deployment with workflow API docs
7+
58
## [0.1.3] - 2022-10-11
69
+ Update - CICD workflows for PyPI release
710

@@ -16,6 +19,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
1619
+ Add - Load data acquired with Miniscope-DAQ-V3
1720
+ Add - Load data analyzed with MiniscopeAnalysis
1821

22+
[0.2.0]: https://github.com/datajoint/element-miniscope/releases/tag/0.2.0
1923
[0.1.3]: https://github.com/datajoint/element-miniscope/releases/tag/0.1.3
2024
[0.1.2]: https://github.com/datajoint/element-miniscope/releases/tag/0.1.2
2125
[0.1.1]: https://github.com/datajoint/element-miniscope/releases/tag/0.1.1

docs/mkdocs.yaml

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,49 @@
11
# ---------------------- PROJECT SPECIFIC ---------------------------
22

3-
site_name: Element Miniscope
3+
site_name: DataJoint Documentation
44
repo_url: https://github.com/datajoint/element-miniscope
55
repo_name: datajoint/element-miniscope
66
nav:
77
- Element Miniscope: index.md
88
- Concepts: concepts.md
99
- Tutorials: tutorials.md
10-
- About:
11-
- Changelog: about/changelog.md
10+
- Citation: citation.md
1211
- API: api/ # defer to gen-files + literate-nav
12+
- Changelog: about/changelog.md
1313

14-
# ---------------------------- STANDARD -----------------------------
14+
# --------------------- NOTES TO CONTRIBUTORS -----------------------
15+
# 1. The above `nav` establishes the site structure. This should be
16+
# more-or-less the same across Elements.
17+
# 2. Follow the google styleguide for best results with docstrings
18+
# https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
19+
# This includes adding typing suggestions to functions
20+
# https://docs.python.org/3/library/typing.html
21+
# 3. To render the site for dev, use the following shell command
22+
# ```console
23+
# MODE="LIVE" PACKAGE=element_{ELEMENT} \
24+
# UPSTREAM_REPO=https://github.com/datajoint/element-{ELEMENT}.git \
25+
# HOST_UID=$(id -u) docker compose -f docs/docker-compose.yaml up --build
26+
# ```
27+
# The Errors and Warnings mkdocs provides during the build are helpful
28+
# for seeing where you may have broken links or docstring issues.
29+
# 4. To render your fork of the workflow repo prior to PRs, change the
30+
# URL in ./docs/src/api/make_pages.py#L19
31+
# 5. Instead of using bash/shell comment blocks, use `console`
32+
# 6. Linking to headings requires [link](./relative-doc#sub-heading) format
33+
# with (a) hypens instead of spaces, (b) all lowercase
34+
# 7. For redirect options, see 'redirects' below.
35+
# 8. Hard wrapping makes it easier to see changes in GitHub reviews. To
36+
# get a keyboard shortcut for hard wrapping, see VSCode Rewrap extension.
37+
# Be careful not to add line breaks in [multiword links](example.com)
38+
# 9. The mkdocs google analytics extension requires an environment variable
39+
# GOOGLE_ANALYTICS_KEY, also available in LastPass. CICD with this is WIP
40+
# 10.To deploy this site on your fork,
41+
# (a) declare a branch called gh-pages
42+
# (b) go to the your fork > settings > pages
43+
# (c) direct pages to render from the gh-pages branch at root
44+
# (d) push a tag to your fork with the format test*.*.*
1545

46+
# ---------------------------- STANDARD -----------------------------
1647
edit_uri: ./edit/main/docs/src
1748
docs_dir: ./src
1849
theme:
@@ -26,6 +57,7 @@ theme:
2657
favicon: assets/images/project-logo-color.png
2758
features:
2859
- toc.integrate
60+
- content.code.annotate
2961
palette:
3062
- media: "(prefers-color-scheme: light)"
3163
scheme: datajoint
@@ -39,9 +71,9 @@ theme:
3971
name: Switch to light mode
4072
plugins:
4173
- search
42-
- redirects:
43-
redirect_maps:
44-
"index.md": "getting_started.md"
74+
# - redirects: # OPTIONAL REDIRECTS
75+
# redirect_maps:
76+
# "index.md": "getting_started.md"
4577
- mkdocstrings:
4678
default_handler: python
4779
- gen-files:
@@ -66,8 +98,31 @@ markdown_extensions:
6698
- name: mermaid
6799
class: mermaid
68100
format: !!python/name:pymdownx.superfences.fence_code_format
101+
- pymdownx.tabbed:
102+
alternate_style: true
103+
- pymdownx.highlight:
104+
linenums: true
105+
- pymdownx.inlinehilite
106+
- pymdownx.snippets
107+
69108
extra:
70109
generator: false # Disable watermark
110+
analytics:
111+
provider: google
112+
property: !ENV GOOGLE_ANALYTICS_KEY
113+
feedback:
114+
title: Was this page helpful?
115+
ratings:
116+
- icon: material/emoticon-happy-outline
117+
name: This page was helpful
118+
data: 1
119+
note: >-
120+
Thanks for your feedback!
121+
- icon: material/emoticon-sad-outline
122+
name: This page could be improved
123+
data: 0
124+
note: >-
125+
Thanks for your feedback!
71126
version:
72127
provider: mike
73128
social:

0 commit comments

Comments
 (0)