Skip to content

Commit 017e469

Browse files
authored
Add high-level maintenance docs
1 parent eb77620 commit 017e469

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

docs/README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# software.sandia.gov Documentation
2+
3+
To aid future maintenance of this website, this README
4+
will document details that have the potential to change at
5+
some point in the future.
6+
7+
## Headers and Footers
8+
9+
The headers and footers for all pages are defined in the
10+
[`_includes`](https://github.com/sandialabs/sandialabs.github.io/tree/main/_includes)
11+
directory.
12+
13+
- [head.html](https://github.com/sandialabs/sandialabs.github.io/blob/main/_includes/head.html) contains:
14+
- Tab icon image
15+
- Sandia approval information
16+
- [header.html](https://github.com/sandialabs/sandialabs.github.io/blob/main/_includes/header.html) contains:
17+
- Navigational bar / dropdowns
18+
- Social media links
19+
- [footer.html](https://github.com/sandialabs/sandialabs.github.io/blob/main/_includes/footer.html) contains:
20+
- Sandia / NNSA logos
21+
- Sandia legal/funding statement
22+
- Copyright statement
23+
24+
## Repository List
25+
26+
The file to control what repositories are queried and cataloged can be found
27+
in [input_lists.json](https://github.com/sandialabs/sandialabs.github.io/blob/main/_explore/input_lists.json).
28+
29+
- `orgs` controls GitHub organizations under which all public repositories will be queried.
30+
For example, the [`mantevo` organization](https://github.com/mantevo) has 13 public repositories
31+
(as of the writing of this README). All of these will be included in any query scripts
32+
for software.sandia.gov.
33+
- `repos` controls individual repositories.
34+
35+
## Categories
36+
37+
The file to control categories that appear on the homepage and the catalog search
38+
can be found in [category_info.json](https://github.com/sandialabs/sandialabs.github.io/blob/main/category/category_info.json).
39+
All categories require a title (as it appears on the homepage), an icon path (with appropriate
40+
alternative text), a description, and the correlated GitHub "topic" (or topics).
41+
For example, for a repository to show up in the `BUILD TOOLS` category on
42+
software.sandia.gov, the repository must have the `snl-build-tools` topic
43+
applied on GitHub. More information on GitHub topics can be found on
44+
their [online documentation](https://help.github.com/articles/about-topics).
45+
46+
## Image Source
47+
48+
Images are stored in the [assets directory](https://github.com/sandialabs/sandialabs.github.io/tree/main/assets/images).
49+
Images from the original LLNL repository are also there for reference.
50+
51+
The icons and banner image were created by Sandia's internal Creative Services
52+
team.
53+
54+
## Automatic Updates
55+
56+
Updates occur nightly via a
57+
[GitHub Actions workflow](https://github.com/sandialabs/sandialabs.github.io/blob/main/.github/workflows/update_data.yml).
58+
This job requires a `TOKEN_USER` and `SECRET_TOKEN` (both secrets on the repository)
59+
in order to run. Information on the `SECRET_TOKEN` requirements can be found
60+
in the [_explore README](https://github.com/sandialabs/sandialabs.github.io/tree/main/_explore).
61+
62+
If the job needs to be run outside of the regular nightly cadence, a user can navigate
63+
to the [Actions page](https://github.com/sandialabs/sandialabs.github.io/actions/workflows/update_data.yml)
64+
and click the "Run workflow" button.
65+
66+
There is a possibility in the future that the nightly query will error due to
67+
GitHub request limits. As of July 2024, GitHub has an hourly limit of 5000 API
68+
requests. If the limit is hit, processing will cease until the available
69+
queries reset.
70+
71+
### Acknowledgements
72+
73+
Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering
74+
Solutions of Sandia, LLC., a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of
75+
Energy’s National Nuclear Security Administration under contract DE-NA-0003525. SAND2024-09661O

0 commit comments

Comments
 (0)