Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions to build local, offline docs #465

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,73 @@ You are free to copy, modify, and distribute the Archivematica documentation
with attribution under the terms of the Creative Commons Attribution Share Alike
4.0 (CC-BY-SA-4.0) license. See the [LICENCE](LICENCE) file for details.

## Building the documentation locally

To build a local, offline version of the documentation:

* Decide where the documentation will be stored on your computer.
* In a Terminal window, use the `cd` command to navigate to this location.
* Create a local copy of the documentation by running:

```bash
git clone https://github.com/artefactual/archivematica-docs.git
```

* Move to the documentation repository with:

```bash
cd archivematica-docs
```

* Create a Python virtual environment to contain all the required tools:

```bash
python3 -m venv .env
```

* Activate the virtual environment:

```bash
source .env/bin/activate
```

* Install the requirements:

```bash
pip install -r requirements.txt
```

* Build the documentation:

```bash
sphinx-build -D language=en ./ _build/html/en # for English

sphinx-build -D language=es ./ _build/html/es # for *español* (Spanish)

sphinx-build -D language=fr ./ _build/html/fr # for *français* (French)

sphinx-build -D language=pt_BR ./ _build/html/pt_BR # for *português do Brasil* (Brazilian Portuguese)
```

* Access the documentation:

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

The HTML files for the documentation will be in
`archivematica-docs/_build/html/`.
You can open the files in a browser of your choice, without having any access
to the Internet.

While this offline version will not have the Archivematica web theme, you will
gain access to improved search features.
replaceafill marked this conversation as resolved.
Show resolved Hide resolved

This local version will contain only the Archivematica documentation; notably
the Archivematica Storage Service docs will be missing. Instructions on how to
build a local, offline version of the Archivematica Storage Service is
available on its [GitHub repo](https://github.com/artefactual/archivematica-storage-service-docs).

## Contributing

Thank you for considering a contribution to the Archivematica documentation! For
Expand Down
Loading