blob: ac919ca9b60d08dee45a2d5860e6ef6973da3d89 [file] [log] [blame] [view]
lowRISC Contributors802543a2019-08-31 12:12:56 +01001# OpenTitan
2
3This repository contains hardware, software and utilities written as part of the
4OpenTitan project. It is structured as monolithic repository, or "monorepo",
5where all components live in one repository.
6
7## Documentation
8
9The project contains comprehensive documentation of all IPs and tools. You can
Garret Kelly9eebde02019-10-22 15:36:49 -040010either access it [online](https://docs.opentitan.org/) or build it
lowRISC Contributors802543a2019-08-31 12:12:56 +010011locally by following the steps below.
12
Garret Kelly9eebde02019-10-22 15:36:49 -0400131. Download and install [`hugo-extended`](https://gohugo.io/getting-started/installing/).
14
152. Ensure that you have the required Python modules installed (to be executed
lowRISC Contributors802543a2019-08-31 12:12:56 +010016in the repository root):
17
18```command
19$ sudo apt install python3 python3-pip
20$ pip3 install --user -r python-requirements.txt
21```
22
Garret Kelly9eebde02019-10-22 15:36:49 -0400233. Execute the build script:
lowRISC Contributors802543a2019-08-31 12:12:56 +010024
25```command
26$ ./util/build_docs.py --preview
27```
28
Garret Kelly9eebde02019-10-22 15:36:49 -040029This compiles the documentation into `./build/docs` and starts a local
lowRISC Contributors802543a2019-08-31 12:12:56 +010030server, which allows you to access the documentation at
Garret Kelly9eebde02019-10-22 15:36:49 -040031[http://127.0.0.1:1313](http://127.0.0.1:1313).
lowRISC Contributors802543a2019-08-31 12:12:56 +010032
33## How to contribute
34
Garret Kelly9eebde02019-10-22 15:36:49 -040035Have a look at [CONTRIBUTING](./CONTRIBUTING.md) for guidelines how
36to contribute code to this repository.
lowRISC Contributors802543a2019-08-31 12:12:56 +010037
38## Licensing
39
40Unless otherwise noted, everything in this repository is covered by the Apache
Garret Kelly9eebde02019-10-22 15:36:49 -040041License, Version 2.0 (see
42[LICENSE](./LICENSE) for full text).