Skip to content

Commit 88d2593

Browse files
committed
Add Sphinx Docs
1 parent 4fc2863 commit 88d2593

19 files changed

+1193
-52
lines changed

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# sphinx build folder
2+
_build
3+
build/
4+
5+
# Compiled source #
6+
###################
7+
*.com
8+
*.class
9+
*.dll
10+
*.exe
11+
*.o
12+
*.so
13+
14+
# Packages #
15+
############
16+
# it's better to unpack these files and commit the raw source
17+
# git has its own built in compression methods
18+
*.7z
19+
*.dmg
20+
*.gz
21+
*.iso
22+
*.jar
23+
*.rar
24+
*.tar
25+
*.zip
26+
27+
# Logs and databases #
28+
######################
29+
*.log
30+
*.sql
31+
*.sqlite
32+
33+
# OS generated files #
34+
######################
35+
.DS_Store?
36+
ehthumbs.db
37+
Icon?
38+
Thumbs.db
39+
40+
# Editor backup files #
41+
#######################
42+
*~

Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

README.md

+4-52
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,16 @@
1-
#### DBoM Open Source Project Template Instructions
2-
3-
1. Create a new project based on this template
4-
3. Update the README, replacing the contents below as prescribed
5-
3. Delete these instructions and everything up to the _Project Title_ from the README.
6-
7-
8-
9-
# Project Title
1+
# Documentation Repository for the Digital Bill of materials
102

113
**Description**:
124

13-
Put a meaningful, short, plain-language description of what
14-
this project is trying to accomplish and why it matters.
15-
Describe the problem(s) this project solves.
16-
Describe how this software can improve the lives of its audience.
17-
18-
Other things to include:
19-
20-
- Link to the changelog
21-
- Links to production or demo instances
22-
23-
**Screenshot**
24-
25-
If the software has visual components, place a screenshot after the description
26-
27-
28-
## Installation
29-
30-
Detailed instructions on how to install, configure, and get the project running.
31-
This should be frequently tested to ensure reliability.
32-
33-
## Configuration
34-
35-
If the software is configurable, describe it in detail, either here or in other documentation to which you link.
36-
37-
## Usage
38-
39-
Show users how to use the software.
40-
Be specific.
41-
Use appropriate formatting when showing code snippets.
42-
43-
## How to test the software
44-
45-
If the software includes automated tests, detail how to run those tests.
46-
5+
This repository contains the source files that are rendered by readthedocs to generate the DBoM documentation
476

487
## Getting help
498

50-
If you have any queries on insert-project-name, feel free to reach us on any of our [communication channels](https://github.com/DBOMproject/community/blob/master/COMMUNICATION.md)
9+
If you have any queries on the digital bill of materials, feel free to reach us on any of our [communication channels](https://github.com/DBOMproject/community/blob/master/COMMUNICATION.md)
5110

52-
**Example**
53-
54-
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
5511

5612
## Getting involved
5713

58-
This section should detail why people should get involved and describe key areas you are
59-
currently focusing on; e.g., trying to get feedback on features, fixing certain bugs, building
60-
important pieces, etc.
61-
62-
General instructions on _how_ to contribute should be stated with a link to [CONTRIBUTING](CONTRIBUTING.md).
14+
For specific details on how to contribute, refer to [CONTRIBUTING](CONTRIBUTING.md).
6315

6416

source/_static/css/custom.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.wy-side-nav-search .wy-dropdown>a img.logo, .wy-side-nav-search>a img.logo {
2+
height: 3rem;
3+
}

source/_static/img/dbom-hl.png

42.4 KB
Loading

source/_static/img/dbom-logo.png

10.6 KB
Loading

source/_static/img/dbom-node-arch.png

248 KB
Loading

source/_static/img/docker-ps.png

8.63 KB
Loading

source/conf.py

+201
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
# import os
16+
# import sys
17+
# sys.path.insert(0, os.path.abspath('.'))
18+
19+
20+
# -- Project information -----------------------------------------------------
21+
22+
project = u'Digital Bill of Materials'
23+
copyright = u'2020, DBoM Project'
24+
author = u'DBoM Project'
25+
26+
# The short X.Y version
27+
version = u''
28+
# The full version, including alpha/beta/rc tags
29+
release = u''
30+
31+
32+
# -- General configuration ---------------------------------------------------
33+
34+
# If your documentation needs a minimal Sphinx version, state it here.
35+
#
36+
# needs_sphinx = '1.0'
37+
38+
# Add any Sphinx extension module names here, as strings. They can be
39+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40+
# ones.
41+
extensions = [
42+
'sphinx.ext.intersphinx',
43+
'sphinx.ext.todo',
44+
]
45+
46+
# Add any paths that contain templates here, relative to this directory.
47+
templates_path = ['_templates']
48+
49+
# The suffix(es) of source filenames.
50+
# You can specify multiple suffix as a list of string:
51+
#
52+
# source_suffix = ['.rst', '.md']
53+
source_suffix = '.rst'
54+
55+
# The master toctree document.
56+
master_doc = 'index'
57+
58+
# The language for content autogenerated by Sphinx. Refer to documentation
59+
# for a list of supported languages.
60+
#
61+
# This is also used if you do content translation via gettext catalogs.
62+
# Usually you set "language" from the command line for these cases.
63+
language = None
64+
65+
# List of patterns, relative to source directory, that match files and
66+
# directories to ignore when looking for source files.
67+
# This pattern also affects html_static_path and html_extra_path.
68+
exclude_patterns = []
69+
70+
# The name of the Pygments (syntax highlighting) style to use.
71+
pygments_style = None
72+
73+
74+
# -- Options for HTML output -------------------------------------------------
75+
76+
# The theme to use for HTML and HTML Help pages. See the documentation for
77+
# a list of builtin themes.
78+
#
79+
html_theme = "sphinx_rtd_theme"
80+
81+
# Theme options are theme-specific and customize the look and feel of a theme
82+
# further. For a list of options available for each theme, see the
83+
# documentation.
84+
#
85+
# html_theme_options = {}
86+
87+
# Add any paths that contain custom static files (such as style sheets) here,
88+
# relative to this directory. They are copied after the builtin static files,
89+
# so a file named "default.css" will overwrite the builtin "default.css".
90+
html_static_path = ['_static']
91+
92+
# Custom sidebar templates, must be a dictionary that maps document names
93+
# to template names.
94+
#
95+
# The default sidebars (for documents that don't match any pattern) are
96+
# defined by theme itself. Builtin themes are using these templates by
97+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
98+
# 'searchbox.html']``.
99+
#
100+
# html_sidebars = {}
101+
102+
103+
# -- Options for HTMLHelp output ---------------------------------------------
104+
105+
# Output file base name for HTML help builder.
106+
htmlhelp_basename = 'DigitalBillofMaterialsdoc'
107+
108+
109+
# -- Options for LaTeX output ------------------------------------------------
110+
111+
latex_elements = {
112+
# The paper size ('letterpaper' or 'a4paper').
113+
#
114+
# 'papersize': 'letterpaper',
115+
116+
# The font size ('10pt', '11pt' or '12pt').
117+
#
118+
# 'pointsize': '10pt',
119+
120+
# Additional stuff for the LaTeX preamble.
121+
#
122+
# 'preamble': '',
123+
124+
# Latex figure (float) alignment
125+
#
126+
# 'figure_align': 'htbp',
127+
}
128+
129+
# Grouping the document tree into LaTeX files. List of tuples
130+
# (source start file, target name, title,
131+
# author, documentclass [howto, manual, or own class]).
132+
latex_documents = [
133+
(master_doc, 'DigitalBillofMaterials.tex', u'Digital Bill of Materials Documentation',
134+
u'Linux Foundation', 'manual'),
135+
]
136+
137+
138+
# -- Options for manual page output ------------------------------------------
139+
140+
# One entry per manual page. List of tuples
141+
# (source start file, name, description, authors, manual section).
142+
man_pages = [
143+
(master_doc, 'digitalbillofmaterials', u'Digital Bill of Materials Documentation',
144+
[author], 1)
145+
]
146+
147+
148+
# -- Options for Texinfo output ----------------------------------------------
149+
150+
# Grouping the document tree into Texinfo files. List of tuples
151+
# (source start file, target name, title, author,
152+
# dir menu entry, description, category)
153+
texinfo_documents = [
154+
(master_doc, 'DigitalBillofMaterials', u'Digital Bill of Materials Documentation',
155+
author, 'DigitalBillofMaterials', 'The attestation framework ',
156+
'Miscellaneous'),
157+
]
158+
159+
html_theme_options = {
160+
'navigation_depth': 4,
161+
}
162+
163+
164+
html_logo = "_static/img/dbom-logo.png"
165+
html_theme_options = {
166+
'logo_only': True,
167+
'display_version': False,
168+
}
169+
html_css_files = ['css/custom.css']
170+
171+
# -- Options for Epub output -------------------------------------------------
172+
173+
# Bibliographic Dublin Core info.
174+
epub_title = project
175+
176+
# The unique identifier of the text. This can be a ISBN number
177+
# or the project homepage.
178+
#
179+
# epub_identifier = ''
180+
181+
# A unique identification for the text.
182+
#
183+
# epub_uid = ''
184+
185+
# A list of files that should not be packed into the epub file.
186+
epub_exclude_files = ['search.html']
187+
188+
189+
# -- Extension configuration -------------------------------------------------
190+
extensions = [
191+
"sphinx_rtd_theme"
192+
]
193+
# -- Options for intersphinx extension ---------------------------------------
194+
195+
# Example configuration for intersphinx: refer to the Python standard library.
196+
intersphinx_mapping = {'https://docs.python.org/': None}
197+
198+
# -- Options for todo extension ----------------------------------------------
199+
200+
# If true, `todo` and `todoList` produce output, else they produce nothing.
201+
todo_include_todos = True

source/contributing.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Contributing
2+
============
3+
4+
We welcome contributions of any kind. For up to date guidelines on things to keep in mind while contributing, head over to the `CONTRIBUTING.MD file in the community repository <https://github.com/DBOMproject/community/blob/master/CONTRIBUTING.md>`__
5+
6+

source/faq.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Frequently Asked Questions
2+
==========================
3+
4+
This section will be amended with questions that come up often, whenever it comes up

source/getting-help.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Getting Help
2+
============
3+
4+
If you need any help with the DBoM Open Source Project, have ideas for a use case or have any related queries, head on over to our `Slack Workspace <http://dbom-project.slack.com/>`__

0 commit comments

Comments
 (0)