Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(mkdocs): migrating documentation engine #221

Merged
merged 13 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
# mkdocs documentation
site/

# PyBuilder
.pybuilder/
Expand Down
2 changes: 1 addition & 1 deletion .makim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ groups:
help: Build documentation
run: |
rm -rf docs/_build
jupyter-book build docs
mkdocs build

preview:
help: Preview documentation page locally
Expand Down
1 change: 1 addition & 0 deletions conda/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dependencies:
- pip
- pip:
- makim==1.12.0
- paginate
69 changes: 0 additions & 69 deletions docs/_config.yml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/_toc.yml

This file was deleted.

File renamed without changes.
65 changes: 65 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
theme:
name: material
features:
- navigation.sections
palette:
- scheme: default
primary: white
accent: amber
toggle:
icon: material/weather-night
name: Switch to dark mode
- scheme: slate
primary: black
accent: amber
toggle:
icon: material/weather-sunny
name: Switch to light mode
font:
text: Lato
icon:
repo: fontawesome/brands/github

site_name: SciCookie
site_description: Documentation for SciCookie
site_author: OpenScienceLabs Team
site_url: https://osl-incubator.github.io/scicookie

repo_url: https://github.com/osl-incubator/scicookie
repo_name: osl-incubator/scicookie
edit_uri: ./edit/main/docs

# strict: true

plugins:
- search
- mkdocstrings
- autorefs # Cross-links to headings
- include_exclude_files:
exclude:
- "_overrides"

markdown_extensions:
- callouts
- pymdownx.arithmatex
- pymdownx.magiclink
- pymdownx.details # Allowing hidden expandable regions denoted by ???
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.superfences # Seems to enable syntax highlighting when used with the Material theme.
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.snippets:
check_paths: true
- toc:
permalink: "¤" # Adds a clickable permalink to each section heading
toc_depth: 4

docs_dir: docs

nav:
- Home: "index.md"
- Guide: "guide.md"
- Contributing: "contributing.md"
Loading