|
1 | | -# Website |
| 1 | +# Hackney Development System |
2 | 2 |
|
3 | | -This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. |
| 3 | +The [Hackney Development System](https://playbook.hackney.gov.uk/) is the home of the Hackney development team's documentation, and details how we work as well as technical and architectural documentation. |
4 | 4 |
|
5 | | -### Installation |
| 5 | +Project-specific documentation doesn't generally live here, and will be found alongside the code in the relevant repositories. There are exceptions, for example the API specifications section seeks to provide a central directory of Hackney's APIs. |
6 | 6 |
|
7 | | -``` |
8 | | -$ yarn |
9 | | -``` |
| 7 | +## Architecture |
10 | 8 |
|
11 | | -### Local Development |
| 9 | +This website is built using [Docusaurus](https://docusaurus.io/) and is hosted on GitHub Pages using GitHub Actions to build and publish. |
12 | 10 |
|
13 | | -``` |
14 | | -$ yarn start |
15 | | -``` |
| 11 | +Before 2024 this site was built and deployed as a series of small static sites with independent repositories, build tooling, and styling. |
16 | 12 |
|
17 | | -This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. |
| 13 | +The site is now a single repository and build pipeline, which reduces the maintenance burden to upgrade dependencies and gives us more flexibility to alter and add to the structure. |
18 | 14 |
|
19 | | -### Build |
| 15 | +### Local search |
20 | 16 |
|
21 | | -``` |
22 | | -$ yarn build |
23 | | -``` |
| 17 | +This site provides a search bar provided by an in-browser JavaScript library. This differs from the Docusaurus-supported default which relies on an Algolia account. We choose local-only search so we don't have to manage the Algolia account or rely on a third party service. |
24 | 18 |
|
25 | | -This command generates static content into the `build` directory and can be served using any static contents hosting service. |
| 19 | +### Google Analytics |
26 | 20 |
|
27 | | -### Deployment |
| 21 | +In order to measure the effectiveness of our documentation and identify stale or ineffective content we use Google Analytics, which records to a property in our Google Workspace. |
| 22 | + |
| 23 | +### Ownership |
28 | 24 |
|
29 | | -Using SSH: |
| 25 | +Most of the content on this site belongs to Hackney's development community as a whole. Some sections, for example the Data Platform Playbook, belong to another group |
30 | 26 |
|
31 | | -``` |
32 | | -$ USE_SSH=true yarn deploy |
33 | | -``` |
| 27 | +We use [CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) to ensure the relevant owner approves a change before it can be merged. |
| 28 | + |
| 29 | +### Deployment |
34 | 30 |
|
35 | | -Not using SSH: |
| 31 | +The default branch of the repository is automatically built and deployed as a GitHub Pages site, using GitHub Actions. The deployment and test workflows are in [`.github/workflows/`](.github/workflows/). |
36 | 32 |
|
37 | | -``` |
38 | | -$ GIT_USER=<Your GitHub username> yarn deploy |
39 | | -``` |
| 33 | +## Contributing |
40 | 34 |
|
41 | | -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. |
| 35 | +Pull requeststs are welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on how to run the site locally and make changes. |
0 commit comments