Skip to content

Commit db34077

Browse files
authored
Merge pull request #815 from aboutcode-org/refine-docs
Refine docs
2 parents 06cdf3e + cce9879 commit db34077

16 files changed

Lines changed: 171 additions & 82 deletions

File tree

docs/source/_static/theme_overrides.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,50 @@ div.rst-content {
2424
margin-left: 0px;
2525
}
2626
}
27+
28+
.row {
29+
clear: both;
30+
}
31+
32+
.column img {
33+
border: 1px solid gray;
34+
}
35+
36+
@media only screen and (min-width: 1000px),
37+
only screen and (min-width: 500px) and (max-width: 768px) {
38+
39+
.column {
40+
padding-left: 5px;
41+
padding-right: 5px;
42+
float: left;
43+
}
44+
45+
.column3 {
46+
width: calc(33.3% - 10px);
47+
}
48+
49+
.column2 {
50+
width: calc(50% - 11px);
51+
position: relative;
52+
}
53+
54+
.column2:before {
55+
padding-top: 61.8%;
56+
content: "";
57+
display: block;
58+
float: left;
59+
}
60+
61+
.top-left {
62+
border-right: 1px solid var(--color-background-border);
63+
border-bottom: 1px solid var(--color-background-border);
64+
}
65+
66+
.top-right {
67+
border-bottom: 1px solid var(--color-background-border);
68+
}
69+
70+
.bottom-left {
71+
border-right: 1px solid var(--color-background-border);
72+
}
73+
}

docs/source/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
:orphan:
2+
13
.. include:: ../../CHANGELOG.rst

docs/source/conf.py

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
# If extensions (or modules to document with autodoc) are in another directory,
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
13-
# import os
14-
# import sys
15-
# sys.path.insert(0, os.path.abspath('.'))
12+
import os
13+
import sys
1614

15+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "purldb_project.settings")
16+
sys.path.insert(0, os.path.abspath("../../."))
1717

1818
# -- Project information -----------------------------------------------------
1919

2020
project = "PurlDB"
21-
copyright = "nexB Inc. and others."
21+
copyright = "AboutCode, nexB Inc. and others."
2222
author = "AboutCode.org authors and contributors"
2323

2424

@@ -31,28 +31,18 @@
3131
"sphinx.ext.intersphinx",
3232
"sphinx_reredirects",
3333
"sphinx_rtd_theme",
34-
"sphinx_rtd_dark_mode",
3534
"sphinx.ext.extlinks",
3635
"sphinx_copybutton",
3736
"sphinx.ext.autodoc",
3837
"sphinx_rtd_dark_mode", # For the Dark Mode
3938
]
4039

4140

42-
# Redirects for olds pages
43-
# See https://documatt.gitlab.io/sphinx-reredirects/usage.html
44-
redirects = {}
45-
4641
# This points to aboutcode.readthedocs.io
4742
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
4843
# Link was created at commit - https://github.com/aboutcode-org/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
4944

5045
intersphinx_mapping = {
51-
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),
52-
"scancode-workbench": (
53-
"https://scancode-workbench.readthedocs.io/en/develop/",
54-
None,
55-
),
5646
"scancode.io": (
5747
"https://scancodeio.readthedocs.io/en/latest/",
5848
None,
@@ -66,14 +56,13 @@
6656
# List of patterns, relative to source directory, that match files and
6757
# directories to ignore when looking for source files.
6858
# This pattern also affects html_static_path and html_extra_path.
69-
exclude_patterns = []
59+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
7060

7161

7262
# -- Options for HTML output -------------------------------------------------
7363

7464
# The theme to use for HTML and HTML Help pages. See the documentation for
7565
# a list of builtin themes.
76-
#
7766
html_theme = "sphinx_rtd_theme"
7867

7968
# Add any paths that contain custom static files (such as style sheets) here,
@@ -85,7 +74,7 @@
8574

8675
html_context = {
8776
"display_github": True,
88-
"github_user": "nexB",
77+
"github_user": "aboutcode-org",
8978
"github_repo": "purldb",
9079
"github_version": "main", # branch
9180
"conf_py_path": "/docs/source/", # path in the checkout to the docs root

docs/source/contributing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
.. _contributing:
24

35
Contributing to PurlDB
@@ -106,7 +108,7 @@ See also :ref:`testing` for module-specific testing commands.
106108

107109
**You must include a "Signed-off-by" to your commit messages**::
108110

109-
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
111+
Signed-off-by: Philippe Ombredanne <pombredanne@aboutcode.org>
110112

111113
4. **Your code is now ready to be pushed as a PR**
112114

docs/source/funding.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Funding
24
=======
35

docs/source/getting-started/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Getting Started
24
===============
35

docs/source/getting-started/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Installation steps
2121
Once the prerequisites have been installed, set up PurlDB with the following commands:
2222
::
2323

24-
git clone https://github.com/nexb/purldb
24+
git clone https://github.com/aboutcode-org/purldb
2525
cd purldb
2626
make dev
2727
make envfile
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
:orphan:
2+
3+
Introduction
4+
=============
5+
6+
What can you do with PurlDB?
7+
------------------------------
8+
9+
- Build a comprehensive open source software packages knowledge base. This includes the extensive
10+
scan of the code of packages for origin, dependencies, embedded packages and licenses.
11+
12+
- Create advanced analysis for open source packages by collecting
13+
:ref:`symbols_and_strings`.
14+
15+
- Detect software supply chain issues by mapping package binaries to their corresponding source code
16+
and determining if there are possible discrepancies between sources and binaries (such as with the
17+
XZ utils attack, or sources and binaries, where package may not report the exact source code
18+
used to build binaries with the :ref:`deploy_to_devel` mapping analysis.
19+
20+
- Access multiple services keyed by PURL, such as metadata, package versions, packages URLs, or
21+
dependencies.
22+
23+
24+
What tools are available in PurlDB?
25+
-------------------------------------
26+
27+
The PurlDB project consists of these main tools:
28+
29+
- PackageDB that is the database and reference model (based on ScanCode toolkit)
30+
that contains package data with PURL (Package URLs) being a first class citizen and the primaty
31+
key to access information.
32+
33+
- MineCode that contains utilities to mine package repositories and populate the PackageDB
34+
35+
- MatchCode that contains utilities to index package metadata and resources for
36+
matching
37+
38+
- MatchCode.io that provides code package and files matching functionalities for codebases
39+
40+
- purldb-toolkit with its "purlcli" command line (CLI) utility and library to use the PurlDB, its
41+
API and various related libraries.
42+
43+
- ClearCode that contains utilities to mine Clearlydefined for package data.
44+
45+

docs/source/how-to-guides/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
How-To-Guides
1+
Tutorials
22
=============
33

4-
Here are the various how-to guides for various purldb modules designed to guide you
4+
Here are the various how-to guides for various PurlDB modules designed to guide you
55
through specific use cases:
66

77
.. toctree::

docs/source/improve-docs.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Something Missing?
2+
------------------
3+
4+
If something is missing in the documentation or if you found some part confusing, please file
5+
an `issue <https://github.com/aboutcode-org/purldb/issues/new>`_ with your suggestions for
6+
improvement. Use the ``documentation`` issue label.
7+
8+
Your help makes PurlDB and MatchCode docs better, we love hearing from you!

0 commit comments

Comments
 (0)