Skip to content

Commit

Permalink
Merge pull request #73 from ProjectPythia/issue_19
Browse files Browse the repository at this point in the history
incremental progress on #19 - populating the contributor's guide
  • Loading branch information
Kevin Paul authored May 20, 2021
2 parents 6f0a893 + 66dec77 commit 81d1d51
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,46 @@ The portal site is built with [sphinx](https://www.sphinx-doc.org/).
To build the site locally (e.g. for testing new content),
use [conda](https://docs.conda.io/) to set up a build environment with all dependencies.

First, make a local clone of this source repository on your machine.
Then, from the `content` directory of the source repository, do this:
First, make a local clone of this source repository on your machine. For example:

```
git clone https://github.com/ProjectPythia/projectpythia.github.io.git
```

Then, change working directories to the local repository's `content` directory:

```
cd projectpythia.github.io/content
```

Set up your a conda environment:

```
conda env create -f ../ci/environment.yml
conda activate pythia
```

You can then build the site:
You can then build the site with:

```
make html
```
and view the built site in your web browser with

After building the site it may be possible to preview the portal in your web browser by simply opening the `index.html` file:

```
open _build/html/index.html
```

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:

```
python -m http.server --directory _build/html/
```

and then pointing your browser at the URL: `localhost:8000`.

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)


You can find more details in the [Contributor's Guide](https://projectpythia.org/pages/contributing.html).

0 comments on commit 81d1d51

Please sign in to comment.