-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from BoothGroup/docs
Documentation via gh-pages
- Loading branch information
Showing
25 changed files
with
188 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% | ||
include-markdown "../FEATURES.md" | ||
%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Generate the code reference pages. | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
import mkdocs_gen_files | ||
|
||
|
||
for path in sorted(Path("ebcc").rglob("*.py")): | ||
module_path = path.relative_to("ebcc").with_suffix("") | ||
doc_path = path.relative_to("ebcc").with_suffix(".md") | ||
full_doc_path = Path("reference", doc_path) | ||
parts = ["ebcc", *module_path.parts] | ||
|
||
if parts[-1] == "__init__": | ||
parts = parts[:-1] | ||
doc_path = doc_path.with_name("index.md") | ||
full_doc_path = full_doc_path.with_name("index.md") | ||
|
||
if not len(parts) or parts[-1] == "__main__" or parts[0] == "codegen": | ||
continue | ||
|
||
with mkdocs_gen_files.open(full_doc_path, "w") as fd: | ||
identifier = ".".join(parts) | ||
fd.write("::: " + identifier + "\n") | ||
|
||
mkdocs_gen_files.set_edit_path(full_doc_path, path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% | ||
include-markdown "../README.md" | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
site_name: ebcc | ||
|
||
watch: | ||
- ../ebcc | ||
|
||
theme: | ||
name: readthedocs | ||
|
||
docs_dir: . | ||
|
||
site_dir: ../site | ||
|
||
plugins: | ||
- search | ||
- gen-files: | ||
scripts: | ||
- gen_files.py | ||
- section-index | ||
- include-markdown | ||
- mkdocstrings: | ||
default_handler: python | ||
handlers: | ||
python: | ||
rendering: | ||
show_source: false | ||
options: | ||
docstring_style: google | ||
members_order: source | ||
line_length: 100 | ||
merge_init_into_class: true | ||
show_if_no_docstring: false | ||
show_root_members_full_path: true | ||
show_object_full_path: true | ||
|
||
nav: | ||
- Home: "index.md" | ||
- Features: "features.md" | ||
- Code Reference: | ||
- Coupled cluster: | ||
- Restricted: reference/cc/rebcc.md | ||
- Unrestricted: reference/cc/uebcc.md | ||
- Generalised: reference/cc/gebcc.md | ||
- Base: reference/cc/base.md | ||
- Equation of motion: | ||
- Restricted: reference/eom/reom.md | ||
- Unrestricted: reference/eom/ueom.md | ||
- Generalised: reference/eom/geom.md | ||
- Base: reference/eom/base.md | ||
- Orbital optimisation: | ||
- Brueckner: | ||
- Restricted: reference/opt/rbrueckner.md | ||
- Unrestricted: reference/opt/ubrueckner.md | ||
- Generalised: reference/opt/gbrueckner.md | ||
- Base: reference/opt/base.md | ||
- Core: | ||
- Ansatz: reference/core/ansatz.md | ||
- Damping: reference/core/damping.md | ||
- Dumping: reference/core/dump.md | ||
- Logging: reference/core/logging.md | ||
- Precision: reference/core/precision.md | ||
- Hamiltonian: | ||
- Space: reference/ham/space.md | ||
- Fock: reference/ham/fock.md | ||
- ERIs: reference/ham/eris.md | ||
- CDERIs: reference/ham/cderis.md | ||
- Bosonic: reference/ham/elbos.md | ||
- Base: reference/ham/base.md | ||
- Utility: | ||
- Permutations: reference/util/permutations.md | ||
- Einstein summations: reference/util/einsumfunc.md | ||
- Miscellaneous: reference/util/misc.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.