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

Versioned Documentation #241

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/Docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
# Only deploy if main, otherwise just build for testing
- name: Deploy
if: endsWith(github.ref, '/main')
run: mkdocs gh-deploy --force
run: mike deploy --push --update-aliases latest
2 changes: 1 addition & 1 deletion docs/paths/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Performing an optimized tensor contraction to speed up `einsum` involves two
key stages:

1. Finding a pairwise contraction order, or **'path'**.
1. Finding a pairwise contraction order, or `path`.
2. Performing the sequence of contractions given this path.

The better the quality of path found in the first step, the quicker the actual
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ black
devtools
markdown==3.*
markdown-include==0.*
mike==2.1.*
mkdocstrings[python]==0.25.*
mkdocs==1.*
mkdocs-awesome-pages-plugin==2.*
Expand Down
7 changes: 7 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
site_name: Optimized Einsum
site_url: https://dgasmith.github.io/opt_einsum/
repo_url: https://github.com/dgasmith/opt_einsum
repo_name: dgasmith/opt_einsum
theme:
Expand Down Expand Up @@ -58,6 +59,12 @@ plugins:
summary: true
unwrap_annotated: true

extra:
version:
provider: mike
default: stable
javascript_dir: javascript

extra_javascript:
- javascript/config.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
Expand Down
Loading