You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This site uses MkDocs to build its documentation and GitHub Pages for hosting.
4
+
5
+
## Format
6
+
7
+
Documentation within this project follows the following pattern:
8
+
9
+
- A `README.md` for each component
10
+
- A `/docs` folder for the project
11
+
12
+
Each `README.md` should contain:
13
+
14
+
- A description of what the component is/does
15
+
- A list of any prerequisites
16
+
- Setup instructions
17
+
- Execution instructions
18
+
- Deployment instructions
19
+
20
+
The `/docs` folder should contain:
21
+
22
+
- A description of what the project is
23
+
- An overview of how the everything fits together in the project
24
+
- An explanation of the tech stack
25
+
- Details of the underlying dataset
26
+
27
+
A majority of the information should reside within the `/docs` directory over the `README`. The `README`s in this project should be kept for concise instructions on how to use each component. Any detailed explanation should be kept within `/docs`.
28
+
29
+
## Updating MkDocs Deployment
30
+
31
+
If changes are made within `/docs`, the GitHub Pages deployment will need to be updated. Assuming you have already installed [MkDocs](https://www.mkdocs.org/getting-started/#installation) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/getting-started/#installation), do the following:
32
+
33
+
1. Navigate to the projects root directory.
34
+
35
+
2. Delete the existing `/mkdocs_deployment` directory.
36
+
37
+
3. Build the MkDocs deployment.
38
+
39
+
```bash
40
+
mkdocs build
41
+
```
42
+
43
+
4. Rename the `/site` directory to `/mkdocs_deployment`. This allows git to track the build so GitHub Pages can redeploy it.
44
+
45
+
5. Commit and Push changes.
46
+
47
+
Once completed, a GitHub Action will redeploy the new build to GitHub Pages.
Copy file name to clipboardExpand all lines: docs/index.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,18 @@
2
2
3
3
## Overview
4
4
5
-
This project is a supporting package for tools which need to access the GitHub RESTful API. It includes a function to authenticate requests as a GitHub App installation, and a class which allows Get, Patch and Post request to be made easily.
5
+
This project is a supporting package for tools which need to access the GitHub RESTful API. It includes a function to authenticate requests as a GitHub App installation and a class which allows Get, Patch and Post requests to be made easily.
For more information, please see the [README.md](./readme.md).
13
+
## Techstack Overview
14
+
15
+
This project is written in Python due to its requirement to be used in other Python projects and doesn't use any specific frameworks. The package uses requests to make API calls and JWT to get a GitHub Authentication token.
16
+
17
+
## Getting Started
18
+
19
+
To setup and use the project, please refer to the [README](https://github.com/ONS-Innovation/github-api-package/blob/main/README.md).
<scriptid="__config" type="application/json">{"base": "/","features": ["content.code.copy"],"search": "/assets/javascripts/workers/search.b8dbb3d2.min.js","translations": {"clipboard.copied": "Copied to clipboard","clipboard.copy": "Copy to clipboard","search.result.more.one": "1 more on this page","search.result.more.other": "# more on this page","search.result.none": "No matching documents","search.result.one": "1 matching document","search.result.other": "# matching documents","search.result.placeholder": "Type to start searching","search.result.term.missing": "Missing","select.version": "Select version"}}</script>
349
+
<scriptid="__config" type="application/json">{"base": "/","features": ["navigation.tracking","navigation.sections","navigation.path","navigation.top","navigation.footer","search.suggest","header.autohide","content.code.copy"],"search": "/assets/javascripts/workers/search.b8dbb3d2.min.js","translations": {"clipboard.copied": "Copied to clipboard","clipboard.copy": "Copy to clipboard","search.result.more.one": "1 more on this page","search.result.more.other": "# more on this page","search.result.none": "No matching documents","search.result.one": "1 matching document","search.result.other": "# matching documents","search.result.placeholder": "Type to start searching","search.result.term.missing": "Missing","select.version": "Select version"}}</script>
0 commit comments