|
1 | 1 | # The Solution Architect's Handbook
|
2 | 2 |
|
| 3 | +This repository contains the source code for "The Solution Architect's Handbook," a Docusaurus-based website with documentation and resources for Solution Architects working with Rossum.ai. |
| 4 | + |
3 | 5 | This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
4 | 6 |
|
5 |
| -## Run the website locally |
| 7 | +## Getting Started |
6 | 8 |
|
7 |
| -First, install dependencies: |
| 9 | +To get a local copy up and running, follow these simple steps. |
8 | 10 |
|
9 |
| -``` |
10 |
| -yarn |
11 |
| -``` |
| 11 | +### Prerequisites |
12 | 12 |
|
13 |
| -Then, run it: |
| 13 | +You need to have [Yarn](https://yarnpkg.com/) installed on your machine. |
14 | 14 |
|
15 |
| -``` |
| 15 | +### Installation |
| 16 | + |
| 17 | +1. Clone the repo: |
| 18 | + ```sh |
| 19 | + git clone https://github.com/mrtnzlml/rossum-sa-handbook.git |
| 20 | + ``` |
| 21 | +2. Install Yarn packages: |
| 22 | + ```sh |
| 23 | + yarn |
| 24 | + ``` |
| 25 | + |
| 26 | +### Running the development server |
| 27 | + |
| 28 | +To start the development server, run: |
| 29 | + |
| 30 | +```sh |
16 | 31 | yarn start
|
17 | 32 | ```
|
18 | 33 |
|
19 | 34 | This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
20 | 35 |
|
21 |
| -## Run tests locally |
| 36 | +## Running Tests |
22 | 37 |
|
23 |
| -``` |
24 |
| -yarn playwright test [--ui] |
| 38 | +This project uses [Playwright](https://playwright.dev/) for end-to-end testing. To run the tests, use the following command: |
| 39 | + |
| 40 | +```sh |
| 41 | +yarn playwright test |
25 | 42 | ```
|
26 | 43 |
|
27 |
| -If needed, you can also build the website locally: |
| 44 | +You can also open the Playwright UI to view and debug tests: |
28 | 45 |
|
| 46 | +```sh |
| 47 | +yarn playwright test --ui |
29 | 48 | ```
|
| 49 | + |
| 50 | +## Building and Serving Locally |
| 51 | + |
| 52 | +To create a static build of the website, run: |
| 53 | + |
| 54 | +```sh |
30 | 55 | yarn build
|
31 | 56 | ```
|
32 | 57 |
|
33 |
| -This command generates static content into the `build` directory and can be served using any static contents hosting service or locally via `yarn serve`. |
| 58 | +This command generates static content into the `build` directory. |
| 59 | + |
| 60 | +You can serve the built site locally using: |
| 61 | + |
| 62 | +```sh |
| 63 | +yarn serve |
| 64 | +``` |
| 65 | + |
| 66 | +This is a great way to check the production build before deploying. |
| 67 | + |
| 68 | +## Deployment |
| 69 | + |
| 70 | +This website is deployed to GitHub Pages. The deployment is handled automatically by a GitHub Actions workflow. |
| 71 | + |
| 72 | +You can also trigger a manual deployment by running: |
| 73 | + |
| 74 | +```sh |
| 75 | +yarn deploy |
| 76 | +``` |
| 77 | + |
| 78 | +## Content Management |
34 | 79 |
|
35 |
| -## Archiving and deprecating pages |
| 80 | +### Archiving and Deprecating Pages |
36 | 81 |
|
37 |
| -1. Use `<Deprecated />` tag on all the relevant pages |
38 |
| -1. Move the page as is into the `deprecated` folder |
39 |
| -1. Adjust any broken links and imports |
40 |
| -1. Add `slug` into the [front matter](https://docusaurus.io/docs/create-doc#doc-front-matter) (to remove the `/deprecated/` path from the URL for backwards compatibility) |
| 82 | +When a page is no longer relevant, it should be archived. Follow these steps: |
41 | 83 |
|
42 |
| -## Collecting all documentation into one file |
| 84 | +1. Use the `<Deprecated />` tag on the relevant page(s). |
| 85 | +2. Move the page into the `docs/learn/deprecated` folder. |
| 86 | +3. Adjust any broken links and imports. |
| 87 | +4. Add a `slug` to the [front matter](https://docusaurus.io/docs/create-doc#doc-front-matter) to remove the `/deprecated/` path from the URL for backwards compatibility. For example: `slug: /my-old-url`. |
43 | 88 |
|
44 |
| -Very handy for Gemini gems: |
| 89 | +### Collecting All Documentation |
| 90 | + |
| 91 | +For tasks that require all documentation content in a single file (like training AI models), you can use this handy script: |
45 | 92 |
|
46 | 93 | ```bash
|
47 | 94 | find ./docs ./cookbook -name "*.md" | xargs cat > ./all_handbook_content.txt
|
48 | 95 | ```
|
| 96 | + |
| 97 | +## Contributing |
| 98 | + |
| 99 | +Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. |
| 100 | + |
| 101 | +If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". |
| 102 | + |
| 103 | +The documentation source files are located in the `/docs` directory. You can edit them directly in GitHub by clicking the "Edit this page" link at the bottom of each documentation page, or by navigating to the file in the repository. |
0 commit comments