Skip to content

Commit 004075e

Browse files
Fix index page issues
Signed-off-by: Ayan Sinha Mahapatra <asmahapatra@aboutcode.org>
1 parent 18a3495 commit 004075e

4 files changed

Lines changed: 163 additions & 43 deletions

File tree

docs/_static/theme_overrides.css

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/* this is the container for the pages */
2+
.wy-nav-content {
3+
max-width: 100%;
4+
padding: 0px 40px 0px 0px;
5+
margin-top: 0px;
6+
}
7+
8+
.wy-nav-content-wrap {
9+
border-right: solid 1px;
10+
}
11+
12+
div.rst-content {
13+
max-width: 1300px;
14+
border: 0;
15+
padding: 10px 80px 10px 80px;
16+
margin-left: 50px;
17+
}
18+
19+
@media (max-width: 768px) {
20+
div.rst-content {
21+
max-width: 1300px;
22+
border: 0;
23+
padding: 0px 10px 10px 10px;
24+
margin-left: 0px;
25+
}
26+
}
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/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@
6565

6666
# -- Options for HTML output -------------------------------------------------
6767

68+
html_static_path = ["_static"]
69+
70+
html_context = {
71+
"display_github": True,
72+
"github_user": "aboutcode-org",
73+
"github_repo": "scancode.io",
74+
"github_version": "main", # branch
75+
"conf_py_path": "/docs/", # path in the checkout to the docs root
76+
}
77+
78+
html_css_files = [
79+
"theme_overrides.css",
80+
]
81+
6882
# The theme to use for HTML and HTML Help pages. See the documentation for
6983
# a list of builtin themes.
7084
html_theme = "sphinx_rtd_theme"

docs/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/scancode.io/issues/new>`_ with your suggestions for
6+
improvement. Use the ``documentation`` issue label.
7+
8+
Your help makes ScanCode docs better, we love hearing from you!

docs/index.rst

Lines changed: 68 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,26 @@ to help you know where to look for certain things.
2121

2222
.. rst-class:: column column2 top-left
2323

24-
:ref:`getting-started`
24+
Getting started
2525
~~~~~~~~~~~~~~~~~~~~~~
2626

2727
Start here if you are new to ScanCode.
2828

2929
- :ref:`quickstart`
30-
31-
- :ref:`introduction`
32-
- :ref:`installation`
33-
- :ref:`user-interface`
34-
35-
- :ref:`faq`
30+
- :ref:`introduction`
31+
- :ref:`installation`
32+
- :ref:`contributing`
33+
- :ref:`user_interface`
3634

3735
.. rst-class:: column column2 top-right
3836

39-
:ref:`tutorials`
37+
Tutorials
4038
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4139

4240
Learn via practical step-by-step guides.
4341

4442
- :ref:`tutorial_web_ui_analyze_docker_image`
45-
- :ref:`tutorial_web_ui_review_scan_result`
43+
- :ref:`tutorial_web_ui_review_scan_results`
4644
- :ref:`tutorial_cli_analyze_docker_image`
4745
- :ref:`tutorial_api_analyze_package_archive`
4846
- :ref:`tutorial_license_policies`
@@ -52,57 +50,84 @@ Learn via practical step-by-step guides.
5250

5351
.. rst-class:: column column2 bottom-left
5452

55-
:ref:`how-to-guides`
56-
~~~~~~~~~~~~~~~~~~~~
53+
Reference Docs
54+
~~~~~~~~~~~~~~~~~~
5755

58-
Helps you accomplish things.
56+
Reference documentation for scancode features and customizations.
5957

60-
- :ref:`contributing`
58+
- :ref:`built_in_pipelines`
59+
- :ref:`custom_pipelines`
60+
- :ref:`project_configuration`
61+
- :ref:`inputs`
62+
- :ref:`output_files`
63+
- :ref:`command_line_interface`
64+
- :ref:`rest_api`
65+
- :ref:`policies`
66+
- :ref:`data_model`
67+
- :ref:`automation`
68+
- :ref:`webhooks`
69+
- :ref:`scancodeio_settings`
70+
- :ref:`recognized_distros_os_images`
6171

6272
.. rst-class:: column column2 bottom-right
6373

64-
:ref:`reference` and :ref:`explanation`
65-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74+
Explanations
75+
~~~~~~~~~~~~~~~~~~
6676

6777
Consult the reference to understand ScanCode.io concepts.
6878

69-
- :ref:`scanpipe-concepts`
70-
- :ref:`built-in-pipelines`
71-
- :ref:`custom-pipelines`
72-
- :ref:`scanpipe-pipes`
73-
- :ref:`project-configuration`
74-
- :ref:`inputs`
75-
- :ref:`output-files`
76-
- :ref:`command-line-interface`
77-
- :ref:`rest-api`
78-
- :ref:`policies`
79-
- :ref:`data-models`
80-
- :ref:`automation`
81-
- :ref:`webhooks`
82-
- :ref:`application-settings`
83-
- :ref:`distros-os-images`
79+
- :ref:`scanpipe_concepts`
80+
- :ref:`scanpipe_pipes`
8481

8582
.. rst-class:: row clearfix
8683

87-
Improving Documentation
88-
~~~~~~~~~~~~~~~~~~~~~~~
89-
90-
.. include:: /rst-snippets/improve-docs.rst
84+
Misc
85+
~~~~~~~~~~~~~~~
9186

92-
.. toctree::
93-
:maxdepth: 2
94-
:hidden:
87+
- :ref:`faq`
88+
- :ref:`changelog`
9589

96-
getting-started/index
97-
tutorials/index
98-
how-to-guides/index
99-
reference/index
100-
explanation/index
90+
.. include:: improve-docs.rst
10191

102-
changelog
10392

10493
Indices and tables
10594
==================
10695

10796
* :ref:`genindex`
10897
* :ref:`search`
98+
99+
.. toctree::
100+
:maxdepth: 2
101+
:hidden:
102+
103+
quickstart
104+
introduction
105+
installation
106+
user-interface
107+
faq
108+
contributing
109+
changelog
110+
tutorial_web_ui_analyze_docker_image
111+
tutorial_web_ui_review_scan_results
112+
tutorial_cli_analyze_docker_image
113+
tutorial_cli_analyze_codebase
114+
tutorial_api_analyze_package_archive
115+
tutorial_license_policies
116+
tutorial_vulnerablecode_integration
117+
tutorial_web_ui_symbol_and_string_collection
118+
tutorial_cli_end_to_end_scanning_to_dejacode
119+
scanpipe-concepts
120+
built-in-pipelines
121+
custom-pipelines
122+
scanpipe-pipes
123+
project-configuration
124+
inputs
125+
output-files
126+
command-line-interface
127+
rest-api
128+
policies
129+
data-models
130+
automation
131+
webhooks
132+
application-settings
133+
distros-os-images

0 commit comments

Comments
 (0)