2018-01-30 10:40:13 +00:00
|
|
|
![alt text](https://opnsense.org/wp-content/themes/OPNsense/assets/img/opnsense.png "Logo Title Text 1")
|
2018-01-30 10:07:51 +00:00
|
|
|
|
2018-01-30 10:40:13 +00:00
|
|
|
# OPNsense documentation
|
|
|
|
Welcome to the OPNsense documentation & wiki.
|
|
|
|
The purpose of this project is to provide OPNsense users with quality documentation.
|
2018-01-30 10:07:51 +00:00
|
|
|
|
2018-01-30 10:40:13 +00:00
|
|
|
## Contribute
|
2018-01-30 10:07:51 +00:00
|
|
|
You can contribute to the project in many ways, e.g. testing
|
|
|
|
functionality, sending in bug reports or creating pull requests
|
|
|
|
directly via GitHub. Any help is always very welcome!
|
|
|
|
|
2018-01-30 10:40:13 +00:00
|
|
|
## License
|
2018-01-30 10:07:51 +00:00
|
|
|
OPNsense documentation is available under the 2-Clause BSD license:
|
|
|
|
|
|
|
|
http://opensource.org/licenses/BSD-2-Clause
|
|
|
|
|
|
|
|
Every contribution made to the project must be licensed under the
|
|
|
|
same conditions in order to keep OPNsense truly free and accessible
|
|
|
|
for everybody.
|
|
|
|
|
|
|
|
Some pictures are licensed under the Creative Commons Zero (CC0) license:
|
|
|
|
|
|
|
|
https://creativecommons.org/publicdomain/zero/1.0/
|
2018-01-30 10:40:13 +00:00
|
|
|
|
2018-11-08 19:59:18 +00:00
|
|
|
Logos may be subject to additional copyrights, property
|
2018-01-30 10:40:13 +00:00
|
|
|
rights, trademarks etc. and may require the consent of a third party or the
|
|
|
|
license of these rights. Deciso B.V. does not represent or make any warranties
|
|
|
|
that it owns or licenses any of the mentioned, nor does it grant them.
|
|
|
|
|
|
|
|
#### Prepare build
|
|
|
|
Install Sphinx, our default theme and contrib packages
|
|
|
|
```
|
2020-01-10 17:11:05 +00:00
|
|
|
pip3 install -r requirements.txt --upgrade
|
2018-01-30 10:40:13 +00:00
|
|
|
```
|
|
|
|
|
2020-02-16 15:07:36 +00:00
|
|
|
### Update API endpoints
|
|
|
|
|
|
|
|
A script is provided to update the api endpoint documentation, this can be
|
|
|
|
executed using:
|
|
|
|
|
|
|
|
```
|
|
|
|
./collect_api_endpoints.py --repo core /path/to/core/repository
|
|
|
|
./collect_api_endpoints.py --repo plugins /path/to/plugins/repository
|
|
|
|
```
|
|
|
|
|
2018-01-30 10:40:13 +00:00
|
|
|
|
|
|
|
#### Generate HTML documents
|
|
|
|
```
|
|
|
|
make html
|
|
|
|
```
|
|
|
|
|
|
|
|
(```make clean``` to flush)
|
|
|
|
|
|
|
|
|
|
|
|
#### Changing theme
|
2018-11-09 12:52:31 +00:00
|
|
|
* Install Sass (http://sass-lang.com/). On macOS, this is done via ```/Library/Ruby/Gems```
|
2018-01-30 10:40:13 +00:00
|
|
|
```
|
|
|
|
gem install --no-user-install sass
|
|
|
|
```
|
|
|
|
* Install npm (https://www.npmjs.com/get-npm)
|
|
|
|
* Install Bower (https://bower.io/)
|
|
|
|
```
|
|
|
|
npm install -g bower
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Install required stylesheets using bower
|
|
|
|
```
|
|
|
|
bower install wyrm
|
|
|
|
bower install robotoslab-googlefont
|
|
|
|
bower install inconsolata-googlefont
|
2018-06-01 16:28:00 +00:00
|
|
|
bower install font-awesome#4.7.0
|
2018-01-30 10:40:13 +00:00
|
|
|
```
|
|
|
|
(for font-awesome, choose newest)
|
|
|
|
|
|
|
|
|
|
|
|
#### Build your theme:
|
|
|
|
```
|
|
|
|
sass -I bower_components/wyrm/sass/ -I bower_components/bourbon/dist/ -I bower_components/neat/app/assets/stylesheets/ -I bower_components/font-awesome/scss/ themes/opnsense/sass/theme.sass > source/_static/css/opnsense.css
|