Skip to content

Commit 9db163b

Browse files
authored
Merge pull request #123 from johnmhoran/122-update-readme-contribute-to-documentation
Add contribute-to-documentation info to README #122
2 parents 4a64fd3 + 4fe7dc4 commit 9db163b

File tree

3 files changed

+93
-2
lines changed

3 files changed

+93
-2
lines changed

README.md

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# www.aboutcode.org
2-
This repository for the AboutCode public website. It is based on Docusaurus.
2+
3+
## Overview
4+
This is the repository for the AboutCode public website. It is based on [Docusaurus](https://docusaurus.io/docs).
35
This website is currently in Alpha-pilot state with a primary focus on content over format.
46
- Please do not submit pull requests unless you find an issue labelled as "good first issue".
57
- If you do submit a pull request:
@@ -8,3 +10,91 @@ This website is currently in Alpha-pilot state with a primary focus on content o
810
- Do not add new dependencies with your PR.
911

1012
The current draft website is available at: https://aboutcode-org.github.io/www.aboutcode.org/.
13+
14+
## Simplified website structure
15+
16+
We value contributions from members of the community. You can always suggest a new feature or a change to some existing element of the website by opening an issue and, if you're ready, a PR.
17+
18+
In addition, the .md files that make up a majority of the website pages have an "Edit this page" link through which you can use the GitHub UI to add a commit or create a new branch and PR. We've also added a similar edit link to the blog post .md files.
19+
20+
Several elements of the website -- including the navbar, the footer, the sidebars, the landing page, and the blog's authors.yml and tags.yml files -- are not directly editable but are ideal candidates for changes proposed through a new issue/PR.
21+
22+
![www.aboutcode.org navbar](./website/static/img/www-aboutcode-org-navbar-2026-02-05.png)
23+
24+
Looking at the links in the website's navbar (defined in `../website/docusaurus.config.js`) ^:
25+
26+
- **AboutCode logo**
27+
- **link**: website Home (landing page)
28+
29+
- **Home**
30+
- **link**: website landing page
31+
- **edit**: submit an issue
32+
- **structure**: website landing page is defined with a series of nested index.js, .css and other files, e.g.:
33+
- *primary index.js*: `../website/src/pages/index.js`
34+
- *HomepageHeader*: `../website/src/components/HomepageHeader/index.js`
35+
- *HomepageContent*: `../website/src/components/HomepageContent/index.js`
36+
- *HomeIntro*: `../website/src/components/HomepageContent/HomeIntro.mdx`
37+
- *ProjectOverview*: `../website/src/components/HomepageContent/ProjectOverview.md`
38+
- *ProjectGridTemplate*: `../website/src/components/ProjectGridTemplate/index.js`
39+
- *Application projects*: `../website/src/data/projects-application.json`
40+
- *ScanCode projects*: `../website/src/data/projects-scancode.json`
41+
- *Package-URL projects*: `../website/src/data/projects-package-url.json`
42+
- *Inspectors*: `../website/src/data/projects-inspectors.json`
43+
- *Libraries*: `../website/src/data/projects-libraries.json`
44+
- *Supporters*: `../website/src/components/HomepageContent/Supporters.md`
45+
46+
- **Getting Started**
47+
- **link**: a group of .md pages organized around a sidebar nav
48+
- **edit**: each .md has an `Edit this page` link in the lower-left corner of the page
49+
- **structure**:
50+
- *Getting started*: `../website/docs/getting_started/getting_started-getting-started.md`
51+
- *Software identification*: `../website/docs/getting_started/getting_started-software-identification.md`
52+
- *Security*: `../website/docs/getting_started/getting_started-security.md`
53+
- *Compliance*: `../website/docs/getting_started/getting_started-compliance.md`
54+
- *CRAVEX*: `../website/docs/getting_started/getting_started-cravex.md`
55+
56+
- **About**
57+
- **link**: a group of .md pages organized around a sidebar nav
58+
- **edit**: each .md has an `Edit this page` link in the lower-left corner of the page
59+
- **structure**:
60+
- *Contribute*: `../website/docs/about/about-contribute.md`
61+
- *Events*: `../website/docs/about/about-events.md`
62+
- *Meetings*: `../website/docs/about/about-meetings.md`
63+
- *News*: `../website/docs/about/about-news.md`
64+
- *Releases*: `../website/docs/about/about-releases.md`
65+
66+
- **Blog**
67+
- **link**: a group of .md pages organized around an auto-generated blog sidebar nav
68+
- **edit**: each post now has an `Edit this page` link in the lower-left corner of the page
69+
- **structure** (excerpt):
70+
```
71+
../website/blog
72+
├── atom-chen-aboutcode
73+
│   ├── 2025-02-04-atom-chen-aboutcode.md
74+
│   └── atom_grey-1024x683.png
75+
├── copyleft-licensed-software-java-app
76+
│   ├── 2021-01-31-copyleft-licensed-software-java-app.md
77+
│   └── java_copyleft_license.png
78+
├── curated-licenses-public-database-scancode-licensedb
79+
│   ├── 2026-01-29-scancode-licensedb.md
80+
│   ├── ScanCode-LicenseDB-1536x1085.png
81+
│   ├── ScanCode-LicenseDB-2026-01.png
82+
│   └── scancode-db-blog.png
83+
├── non-vulnerable-dependency-resolution
84+
. . .
85+
├── authors.yml
86+
├── tags.yml
87+
```
88+
89+
- **GitHub**
90+
- **link**: https://github.com/aboutcode-org/www.aboutcode.org
91+
- **edit**: submit an issue
92+
- **structure**: a link in `../website/docusaurus.config.js`
93+
94+
- **Slack**
95+
- **link**: https://aboutcode-org.slack.com/join/shared_invite/zt-1paqwxccw-IuafuiAvYJFkTqGaZsC1og#/shared-invite/email
96+
- **edit**: submit an issue
97+
- **structure**: a link in `../website/docusaurus.config.js`
98+
99+
- **light/dark toggle**
100+
- provided by default in `classic` theme

website/docusaurus.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const config = {
7777
blogSidebarTitle: 'All posts',
7878
blogSidebarCount: 'ALL',
7979
blogTitle: 'AboutCode blog!',
80+
editUrl: 'https://github.com/aboutcode-org/www.aboutcode.org/tree/main/website/',
8081
},
8182

8283
theme: {
@@ -116,7 +117,7 @@ const config = {
116117
},
117118
{ to: '/blog', label: 'Blog', position: 'left' },
118119
{
119-
href: 'https://github.com/aboutcode-org',
120+
href: 'https://github.com/aboutcode-org/www.aboutcode.org',
120121
label: 'GitHub',
121122
position: 'right',
122123
},
13.8 KB
Loading

0 commit comments

Comments
 (0)