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

chore: Switch docs config from sphinx to mkdocs #42

Merged
merged 9 commits into from
May 24, 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
5 changes: 2 additions & 3 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ jobs:

- name: Add GitHub Pages Config
run: |
touch docs/build/html/.nojekyll
echo "protect.docs.rungalileo.io" > docs/build/html/CNAME
touch site/.nojekyll

- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_PROTECT_DOCS_DEPLOY_KEY }}
with:
source-directory: "docs/build/html"
source-directory: "site/"
target-directory: "docs/"
destination-github-username: "rungalileo"
destination-repository-name: "protect-docs"
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
index.md
CHANGELOG.md
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
protect.docs.rungalileo.io
Binary file added docs/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
::: galileo_protect
options:
show_submodules: false
59 changes: 0 additions & 59 deletions docs/source/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions docs/source/galileo_protect.rst

This file was deleted.

19 changes: 0 additions & 19 deletions docs/source/index.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/modules.rst

This file was deleted.

61 changes: 61 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
site_name: Galileo Protect

nav:
- Galileo Protect Reference: index.md

theme:
name: material
favicon: images/favicon.png
logo: images/logo.png
features:
- search.suggest
- search.highlight
- search.share
- content.code.annotate
- content.code.copy
- content.code.select
- navigation.expand
- navigation.path
- navigation.footer
- navigation.top
- toc.integrate
palette:
primary: deep purple
accent: purple
copyright: Copyright © 2024 Galileo Technologies, Inc.
extra:
generator: false

markdown_extensions:
- toc:
permalink: true
toc_depth: 2

plugins:
- search
- autorefs
- mkdocstrings:
handlers:
python:
options:
show_submodules: true
show_source: false
preload_modules:
- galileo_core
filters: ["!__version__"]
members: true
members_order: source
docstring_style: "numpy"
docstring_section_style: "list"
show_signature_annotations: true
show_symbol_type_toc: true
signature_crossrefs: true
show_symbol_type_heading: true
unwrap_annotated: true
show_if_no_docstring: true
load_external_modules: true
merge_init_into_class: true
separate_signature: true
extensions:
- griffe_typingdoc
- griffe_fieldz: { include_inherited: true }
Loading
Loading