forked from lowRISC/ibex
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from NXP/feature/prepare-documentation
Feature/prepare documentation
- Loading branch information
Showing
8 changed files
with
1,100 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2023 OpenHW Group | ||
# Solderpad Hardware License, Version 2.1, see LICENSE.md for details. | ||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 | ||
|
||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-20.04" | ||
tools: | ||
python: "3.9" | ||
|
||
# Build from the docs directory with Sphinx | ||
sphinx: | ||
configuration: doc/conf.py | ||
|
||
# Explicitly set the Python requirements | ||
python: | ||
install: | ||
- requirements: doc/requirements.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# CVE2 Documentation | ||
|
||
The documentation of CVE2 is written in reStructuredText and compiled to HTML using Sphinx. For more information, check https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html. | ||
|
||
## Prerequisites | ||
|
||
To build the documentation, certain prequisites need to be fulfilled. This section outlines the necessary steps on Linux. Tested on Ubuntu 20.04. | ||
|
||
Sphinx is based on Python and requires at least version 3.8. Additionally, `make` is required and can be installed through build-essential. | ||
|
||
```bash | ||
sudo apt update | ||
sudo apt install python3 | ||
sudo apt install build-essential | ||
``` | ||
|
||
Please verify your Python version using | ||
|
||
```bash | ||
python3 --version | ||
``` | ||
|
||
The recommended way of installing Sphinx is via `pip` using | ||
|
||
```bash | ||
pip install -U sphinx | ||
``` | ||
|
||
Sphinx requires certain packages to build this documentation. These are summarized in `doc/requirements.txt`. They can automatically be installed using | ||
|
||
```bash | ||
cd doc | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Building the documentation | ||
|
||
To build the documentation, switch to the `doc` folder if not already done. Build is invoked via the `make` command. Typically, an HTML should be build. | ||
|
||
```bash | ||
cd doc | ||
make html | ||
``` | ||
|
||
Simply type only `make` to view other available targets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.no-scrollbar-table td { | ||
white-space: normal !important; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.