You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+14-39
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,11 @@ Pip install the following packages, which are also listed in `requirements.txt`:
21
21
22
22
- pyscf
23
23
- sphinx
24
-
- sphinx-material
25
24
- sphinxcontrib-bibtex
26
25
- nbsphinx
26
+
- pydata-sphinx-theme
27
+
- myst-parser
28
+
- sphinx_design
27
29
28
30
If you have multiple versions of PySCF on your machine and you would like so use
29
31
a specific version, set `PYTHONPATH` to include the specific PySCF source
@@ -59,45 +61,18 @@ Finally to serve the website, you can run:
59
61
python -m http.server --directory build/html
60
62
```
61
63
64
+
### Viewing a forked repo GitHub Pages
62
65
63
-
### Adding Content to GitHub Pages
66
+
The PySCF website is currently built and deployed to GitHub Pages any time a push is made to the master branch of the repository.
67
+
The website is served out of the `docs/` directory of the `gh-pages` branch.
68
+
This is all controlled by a GitHub Action in `.github/workflows/docs_deploy.yaml`.
69
+
If you forked this repository and you want to view the website on your own GitHub Pages, make sure to enable Actions on your repository,
70
+
because they are disabled in forks by default.
64
71
65
-
If you want to show the latest version of the docs on GitHub pages, build using then instructions above. Then from `pyscf-doc/source` run the following:
72
+
## How to contribute
66
73
67
-
```bash
68
-
make gh_pages_setup
69
-
```
70
-
71
-
## How to Contribute
72
-
73
-
1. Add a rst file \"your\_method.rst\" in the [source/user](source/user/) directory in which one describes the basic theory and usage of the method. Reference \"user/your\_method.rst\" in the \"toctree\" section in [source/user.rst](source/user.rst).
74
-
2. Add a rst file \"your\_module.rst\" in the [source/modules](source/modules/) directory in which one lists the examples and the member classes and functions of the module (the API doc is then generated by autodoc). (In the \"\_\_init\_\_.py\" file of each module, one should include a simple usage section. See [pyscf.dft.\_\_init\_\_.py](https://github.com/pyscf/pyscf/blob/master/pyscf/dft/__init__.py) as an example.) Reference \"your\_module.rst\" in the \"toctree\" section in [source/modules.rst](source/modules.rst).
75
-
3. Optionally, one could also add a rst file \"your\_method\_develop.rst\" in the [source/develop](source/develop/) directory where one provides more detailed descriptions of the implementation and advanced guidelines for using and further development of the module. Reference \"your\_method\_develop.rst\" in [source/develop.rst](source/develop.rst).
76
-
77
-
78
-
<!-- ## Adding Blog Posts
74
+
Website pages can be written in Markdown `.md` or reStructuredTest `.rst`.
79
75
80
-
Create a new `.md` file in `pyscf-doc/source/posts` and add the following header (modified for your post):
81
-
82
-
```
83
-
---
84
-
blogpost: true
85
-
date: February 1, 2021
86
-
author: James Smith
87
-
location: World
88
-
category: Tutorial
89
-
tags: HF, DFT, MCSCF
90
-
language: English
91
-
---
92
-
```
93
-
94
-
If you want to write a post in `.rst` that's fine too! Just use the following in your header:
95
-
96
-
```
97
-
:blogpost: true
98
-
:date: Oct 10, 2020
99
-
:author: Nabil Freij
100
-
:location: World
101
-
:category: Manual
102
-
:language: English
103
-
``` -->
76
+
1. Add a rst (or md) file \"your\_method.rst\" in the [source/user](source/user/) directory in which one describes the basic theory and usage of the method. Reference \"user/your\_method.rst\" in the \"toctree\" section in [source/user.rst](source/user.rst).
77
+
2. Add a rst (or md) file \"your\_module.rst\" in the [source/modules](source/modules/) directory in which one lists the examples and the member classes and functions of the module (the API doc is then generated by autodoc). (In the \"\_\_init\_\_.py\" file of each module, one should include a simple usage section. See [pyscf.dft.\_\_init\_\_.py](https://github.com/pyscf/pyscf/blob/master/pyscf/dft/__init__.py) as an example.) Reference \"your\_module.rst\" in the \"toctree\" section in [source/modules.rst](source/modules.rst).
78
+
3. Optionally, one could also add a rst file \"your\_method\_develop.rst\" in the [source/contributor](source/contributor/) directory where one provides more detailed descriptions of the implementation and advanced guidelines for using and further development of the module.
0 commit comments