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
[Docsy](https://github.com/google/docsy) is a Hugo theme for technical documentation sites, providing easy site navigation, structure, and more. This **Docsy Example Project** uses the Docsy theme, as well as providing a skeleton documentation structure for you to use. You can either copy this project and edit it with your own content, or use the theme in your projects like any other [Hugo theme](https://gohugo.io/themes/installing-and-using-themes/).
3
+
Welcome to the source file repository for our documentation on [elekto.io](https://elekto.io/).
4
4
5
-
The theme is included in this project as a Git submodule:
You can now edit your local versions of the site’s source files.
33
-
34
-
If you want to do SCSS edits and want to publish these, you need to install `PostCSS`
17
+
If you accidentally cloned this repository without `--recurse-submodules` flag, you can do the following to clone the submodules:
35
18
36
19
```bash
37
-
npm install
20
+
cd docs
21
+
git submodule init
22
+
git submodule update
23
+
cd themes/docsy
24
+
git submodule init
25
+
git submodule update
38
26
```
39
27
40
-
## Running the website locally
28
+
**[Optional]** If you want to write CSS/SCSS, you need to install `postcss-cli` and `autoprefixer`, run an `npm install` to install the dependencies from `package.json`.
41
29
42
-
Once you've cloned or copied the site repo, from the repo root folder, run:
30
+
Finally, use hugo commands to start building up the site, run the following
43
31
44
-
```
32
+
```bash
33
+
# Start the server with live-reloading and with drafts
34
+
hugo -D server
35
+
36
+
# Start the server with live-reloading and without drafts
45
37
hugo server
46
38
```
47
39
48
40
## Running a container locally
49
41
50
-
You can run docsy-example inside a [Docker](ihttps://docs.docker.com/)
51
-
container, the container runs with a volume bound to the `docsy-example`
42
+
You can run this website inside a [Docker](ihttps://docs.docker.com/)
43
+
container, the container runs with a volume bound to the `docs`
52
44
folder. This approach doesn't require you to install any dependencies other
docker run --publish 1313:1313 --detach --mount src="$(pwd)",target=/home/docsy/app,type=bind docsy-example-dev:latest
56
+
docker run --publish 1313:1313 --detach --mount src="$(pwd)",target=/home/docsy/app,type=bind elekto-docs:latest
65
57
```
66
58
67
-
Open your web browser and type `http://localhost:1313` in your navigation bar,
68
-
This opens a local instance of the docsy-example homepage. You can now make
69
-
changes to the docsy example and those changes will immediately show up in your
70
-
browser after you save.
59
+
Open your web browser and type `http://localhost:1313` in your navigation bar, This opens a local instance of the elekto documentation's homepage. You can now make changes to the docsy example and those changes will immediately show up in your browser after you save.
71
60
72
61
To stop the container, first identify the container ID with:
73
62
@@ -87,3 +76,30 @@ To delete the container run:
87
76
```
88
77
docker container rm [container_id]
89
78
```
79
+
80
+
## Deploy you changes
81
+
82
+
While the above section describes how the content is built locally, [https://elekto.io/](https://elekto.io/) is built and served by [github-pages]() on github.
83
+
84
+
Save your local changes by commiting them and then use the `deploy.sh` script to do the deployment.
85
+
86
+
```bash
87
+
./deploy.sh
88
+
```
89
+
90
+
91
+
## Contributing
92
+
93
+
We're excited that you're interested in contributing to the Elekto documentation! Check out the resources below to get started.
94
+
95
+
Checkout, [How to Contribute](CONTRIBUTING.md) for getting started on how to contribute and understanding the outlines the roles for Docs contributors.
96
+
97
+
## Getting Help
98
+
99
+
The elekto project is maintained by [Manish Sahani](https://github.com/kalkayan/) and [Josh Berkus](https://github.com/jberkus), Reach out to us one way or another.
100
+
101
+
## Support
102
+
103
+
Your help and feedback is always welcome!
104
+
105
+
If you find an issue let us know, either by clicking the Create Issue on any of the website pages, or by directly opening an issue [here](https://github.com/elekto-io/docs/issues/new) in the repo.
0 commit comments