Skip to content

Commit 2088598

Browse files
authored
Merge pull request #133 from tberkel/master
Change to PyData Sphinx Theme
2 parents 8a6eddd + bf0cba6 commit 2088598

35 files changed

+1418
-397
lines changed

.github/workflows/slack_notification.yaml

-21
This file was deleted.

README.md

+14-39
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ Pip install the following packages, which are also listed in `requirements.txt`:
2121

2222
- pyscf
2323
- sphinx
24-
- sphinx-material
2524
- sphinxcontrib-bibtex
2625
- nbsphinx
26+
- pydata-sphinx-theme
27+
- myst-parser
28+
- sphinx_design
2729

2830
If you have multiple versions of PySCF on your machine and you would like so use
2931
a specific version, set `PYTHONPATH` to include the specific PySCF source
@@ -59,45 +61,18 @@ Finally to serve the website, you can run:
5961
python -m http.server --directory build/html
6062
```
6163

64+
### Viewing a forked repo GitHub Pages
6265

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.
6471

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
6673

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`.
7975

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.

requirements.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
pyscf
22
sphinx
3-
ablog
4-
sphinx-material
53
sphinxcontrib-bibtex
64
nbsphinx
75
Pygments==2.15.0
86
# MarkupSafe 2.1.1 breaks Jinja2 2.10.1
97
MarkupSafe==2.0.1
8+
pydata-sphinx-theme
9+
myst-parser
10+
sphinx_design
11+
File renamed without changes.

source/_static/css/pyscf-pst.css

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:root {
2+
--pyscf-primary: #3677e0;
3+
--pyscf-accent: #3677e0;
4+
}
5+
6+
html[data-theme="light"] {
7+
--pst-color-primary: var(--pyscf-primary);
8+
--pst-color-secondary: var(--pyscf-accent);
9+
}
10+
11+
html[data-theme="dark"] {
12+
--pst-color-primary: var(--pyscf-primary);
13+
--pst-color-secondary: var(--pyscf-accent);
14+
}

source/about.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# About PySCF
2+
3+
PySCF is a free and open-source quantum chemistry code distributed on
4+
[GitHub](https://github.com/pyscf/pyscf) and released under the Apache-2.0
5+
license. The development of PySCF began in 2014. Since then, it has grown
6+
from being a single-group code to one relied on daily by over 100 research
7+
teams in academia and industry across the world. For more details, see its
8+
extensive list of [features](features.rst), [version history](version), and
9+
example [benchmark data](benchmark).
10+
11+
## People
12+
13+
### Board of directors
14+
15+
- [Timothy Berkelbach](https://berkelbach.chem.columbia.edu/), Columbia and Flatiron Institute
16+
- [Garnet Chan](https://www.chan-lab.caltech.edu/), Caltech
17+
- [Sandeep Sharma](https://www.colorado.edu/lab/sharmagroup/), CU Boulder
18+
- [Alexander Sokolov](https://research.cbc.osu.edu/sokolov.8/), Ohio State
19+
- Qiming Sun
20+
21+
### Maintainers
22+
23+
- [Xing Zhang](https://www.chan-lab.caltech.edu/people), Caltech
24+
25+
## How to cite
26+
27+
- [Recent developments in the PySCF program package](https://doi.org/10.1063/5.0006074), Q. Sun, X. Zhang, S. Banerjee, P. Bao, M. Barbry, N. S. Blunt, N. A. Bogdanov, G. H. Booth, J. Chen, Z.-H. Cui, J. J. Eriksen, Y. Gao, S. Guo, J. Hermann, M. R. Hermes, K. Koh, P. Koval, S. Lehtola, Z. Li, J. Liu, N. Mardirossian, J. D. McClain, M. Motta, B. Mussard, H. Q. Pham, A. Pulkin, W. Purwanto, P. J. Robinson, E. Ronca, E. R. Sayfutyarova, M. Scheurer, H. F. Schurkus, J. E. T. Smith, C. Sun, S.-N. Sun, S. Upadhyay, L. K. Wagner, X. Wang, A. White, J. Daniel Whitfield, M. J. Williamson, S. Wouters, J. Yang, J. M. Yu, T. Zhu, T. C. Berkelbach, S. Sharma, A. Yu. Sokolov, and G. K.-L. Chan, J. Chem. Phys. **153**, 024109 (2020)
28+
29+
- [PySCF: the Python-based simulations of chemistry framework](https://doi.org/10.1002/wcms.1340), Q. Sun, T. C. Berkelbach, N. S. Blunt, G. H. Booth, S. Guo, Z. Li, J. Liu, J. McClain, S. Sharma, S. Wouters, and G. K.-L. Chan, WIREs Comput. Mol. Sci. **8**, e1340 (2018)
30+
31+
- [Libcint: An efficient general integral library for Gaussian basis functions](https://doi.org/10.1002/jcc.23981), Q. Sun, J. Comp. Chem. 36, 1664 (2015)
32+
33+
## Funding
34+
35+
The development of PySCF has been and continues to be generously supported by a
36+
number of funding agencies. Most of the molecular quantum chemistry software
37+
infrastructure was developed with support from the US National Science
38+
Foundation, through grants CHE-1650436 and ACI-1657286. The periodic mean-field
39+
infrastructure was developed with support from ACI-1657286. The excited-state
40+
periodic coupled cluster methods were developed with support from the US
41+
Department of Energy, Office of Science, through the grants DE-SC0010530 and
42+
DE-SC0008624. Additional support for the extended-system methods has been
43+
provided by the Simons Foundation through the Flatiron Institute, the Simons
44+
Collaboration on the Many Electron Problem, a Simons Investigatorship in
45+
Theoretical Physics, the Princeton Center for Theoretical Science, and startup
46+
funds from Princeton University and the California Institute of Technology.
47+

source/about.rst

-38
This file was deleted.

0 commit comments

Comments
 (0)