Skip to content

Commit 81d1d51

Browse files
author
Kevin Paul
authored
Merge pull request #73 from ProjectPythia/issue_19
incremental progress on #19 - populating the contributor's guide
2 parents 6f0a893 + 66dec77 commit 81d1d51

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

README.md

+30-4
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,46 @@ The portal site is built with [sphinx](https://www.sphinx-doc.org/).
88
To build the site locally (e.g. for testing new content),
99
use [conda](https://docs.conda.io/) to set up a build environment with all dependencies.
1010

11-
First, make a local clone of this source repository on your machine.
12-
Then, from the `content` directory of the source repository, do this:
11+
First, make a local clone of this source repository on your machine. For example:
12+
13+
```
14+
git clone https://github.com/ProjectPythia/projectpythia.github.io.git
15+
```
16+
17+
Then, change working directories to the local repository's `content` directory:
18+
19+
```
20+
cd projectpythia.github.io/content
21+
```
22+
23+
Set up your a conda environment:
24+
1325
```
1426
conda env create -f ../ci/environment.yml
1527
conda activate pythia
1628
```
1729

18-
You can then build the site:
30+
You can then build the site with:
31+
1932
```
2033
make html
2134
```
22-
and view the built site in your web browser with
35+
36+
After building the site it may be possible to preview the portal in your web browser by simply opening the `index.html` file:
37+
2338
```
2439
open _build/html/index.html
2540
```
2641

42+
However, many of the links will not work. For all of the links found in the portal to work properly, you'll need to set up a local testing server. This can be done with Python's http.server by running the following command from within the `content` directory:
43+
44+
```
45+
python -m http.server --directory _build/html/
46+
```
47+
48+
and then pointing your browser at the URL: `localhost:8000`.
49+
50+
More information on setting up a local test server is available from [here](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server)
51+
52+
2753
You can find more details in the [Contributor's Guide](https://projectpythia.org/pages/contributing.html).

0 commit comments

Comments
 (0)