Git Product home page Git Product logo

simp-doc's Introduction

License Build Status

SIMP Documentation

The repository for the SIMP documentation.

It is a component of the System Integrity Management Platform, a compliance-management framework built on Puppet.

If you find any issues, they can be submitted to our JIRA.

Please read our Contribution Guide and visit our developer wiki.

Usage

Building the docs

# build HTML docs, dumps the resulting files in doc/;
rake docs:html

# build HTML docs, specifying a local simp-core location
SIMP_CORE_PATH=<path to local simp-core git repo> rake docs:html

# build HTML docs for a specific SIMP version, as specified by a
# tag/branch
SIMP_BRANCH='6.0.0-0' rake docs:html

# run a local web server to view HTML docs on http://localhost:5000
rake docs:server[port]

If you want to build the RPM on EL6 systems, you will need to ensure that the SCL and python versions are appropriately available using the following repositories and check the RPM spec file for the relevant required packages.

[centos-sclo-sclo]
name=CentOS-6 - SCLo sclo
baseurl=http://mirror.centos.org/centos/6/sclo/$basearch/sclo/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

[centos-sclo-rh]
name=CentOS-6 - SCLo rh
baseurl=http://mirror.centos.org/centos/6/sclo/$basearch/rh/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Maintaining the data

# Update the RPM lists
rake docs:rpm:external

# Update the SIMP RPM list
rake docs:rpm:simp

Environment variables

SIMP_CORE_PATH

Sets an path to a local simp-core git repository. Can be used to test new revisions of the simp-core Changelog.rst. This defaults to ../.. under the assumption that this repository has been checked out as part of the simp-core SIMP ISO build.

SIMP_CORE_PATH=$PWD/../simp-core rake docs:html

SIMP_BRANCH

Sets the simp-core github tag/branch for the version of docs to build, when a local simp-core repository is not to be used. The version, release, and changelog information will be downloaded for that version to build the docs. This defaults to master.

SIMP_BRANCH=6.0.0-1 rake docs:html

CAUTION: This branch is used only to determine version information. It does not result in the simp-docs version that corresponds to SIMP_BRANCH to be downloaded and built.

Managing Sphinx prerequisites with pip

If you are using PyPi to manage python packages, you may need to run something like the following:

# simp install
sudo pip install -q -r requirements.txt

# upgrading (needed in some cases when rst2pdf prereqs get stuck)
sudo pip install --upgrade --force-reinstall  -r requirements.txt -v

The prerequisites for rst2pdf may require extra OS packages:

# fedora 24
sudo dnf install -y libjpeg-devel zlib-devel python-devel

# centos 7
sudo yum install -y libjpeg-devel zlib-devel python-devel

# Debian 8.5 (containers)
sudo apt-get install -y python-dev zlib1g-dev libjpeg-dev

simp-doc's People

Contributors

trevor-vaughan avatar lnemsick-simp avatar jeannegreulich avatar op-ct avatar judyj avatar m-morrone avatar thesemicolons avatar cmentzer avatar nick-markowski avatar sharkbruhaha avatar ralph-wright avatar heliocentric avatar rbclark avatar shawndwells avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.