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
Repository for [docs.localstack.cloud](https://docs.localstack.cloud).
5
5
6
6
7
-
get started
7
+
Getting Started
8
8
-----------
9
9
10
-
### clone repo
10
+
### Basics
11
+
LocalStack Docs is using the following technology stack:
12
+
-[Hugo](https://gohugo.io) to generate the static site.
13
+
-[Docsy](https://docsy.dev) as a theme for Hugo.
14
+
-[GitHub Pages](https://pages.github.com/) to automatically deploy every commit on the `main` branch of this repository on [docs.localstack.cloud](https://docs.localstack.cloud).
11
15
12
-
clone the repoitory and init submodules recursively (`themes/docsy` is a submodule that again has submodules for vendored assets like fontawesome).
16
+
17
+
### Clone the repo
18
+
Clone this repository and initialize the Git submodules recursively (`themes/docsy` is a submodule that again has submodules for vendored assets like fontawesome).
[install hugo](https://gohugo.io/getting-started/installing). Make sure to install the _extended version_.
33
+
### Install Hugo
34
+
LocalStack Docs is based on the [Hugo static site generator](https://gohugo.io).
30
35
36
+
In order to contribute to LocalStack Docs, you need to [install Hugo](https://gohugo.io/getting-started/installing) in order to verify your changes. Make sure to install the _extended_ version of Hugo.
31
37
32
-
### run locally
38
+
### Run locally
39
+
Once you have Hugo installed, you can start your local server with the following command:
33
40
34
-
npm install
35
-
hugo server
41
+
hugo serve
36
42
37
-
or run in developer mode with automatic reload
43
+
or run in developer mode with automatic reload:
38
44
39
-
hugo server --watch=true --disableFastRender -D
45
+
hugo serve --watch=true --disableFastRender -D
40
46
41
-
alternatively:
47
+
Once the server is started, the locally served Docs are available at http://localhost:1313.
42
48
43
-
npm run dev
49
+
### Writing content
50
+
The whole site is generated with Hugo, a powerful static-site generator.
44
51
52
+
You can find an extensive documentation on how to use Hugo [in their docs](https://gohugo.io/documentation/), however most of the content is written in plain Markdown.
45
53
54
+
Make sure to follow the best practices below when contributing content.
46
55
47
56
## Best Practices
48
57
49
-
Please follow these best practices when writing documentation here:
58
+
Please follow these best practices when writing documentation in this repository:
50
59
- Use the custom `command` shortcode for all one-liner commands (also when their output is presented). Do not use it for bash scripts with comments. You can find a more detailed description here: https://github.com/localstack/docs/pull/55
51
60
- Use the [`ref` or `relref` shortcode](https://gohugo.io/content-management/cross-references/#use-ref-and-relref) when creating non-external links (but still use the markdown native image linking, ref doesn't work there).
52
61
You can either use `ref` or `relref`, the point is to have compile time internal-link checks (which works for both).
@@ -67,4 +76,16 @@ Please follow these best practices when writing documentation here:
67
76
If you want to resize the image, use the `figure` or `img` shortcode. For example:
PS.: Feel free to add more best practices here (also give us a heads-up in [#sig-docs](https://localstack-cloud.slack.com/archives/C02FZH6UB2A)).
79
+
PS.: Feel free to add more best practices here.
80
+
81
+
## Troubleshooting
82
+
This section covers common issues when working with LocalStack Docs:
83
+
### Missing shortcodes
84
+
Example error:
85
+
```
86
+
Start building sites …
87
+
hugo v0.88.1-5BC54738+extended linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
88
+
Error: Error building site: "/home/localstack/Repos/docs-test/content/en/get-started/_index.md:57:1": failed to extract shortcode: template for shortcode "alert" not found
89
+
Built in 45 ms
90
+
```
91
+
Make sure to correctly clone and initialize the git submodules of this repo. For details see the section "[Clone the repo](#clone-the-repo)" above.
0 commit comments