@@ -29,21 +29,44 @@ The Dapr docs are built using [Hugo](https://gohugo.io/) with the [Docsy](https:
29
29
30
30
The [ daprdocs] ( ./daprdocs ) directory contains the hugo project, markdown files, and theme configurations.
31
31
32
- ## Pre-requisites
32
+ ## Setup with a devcontainer
33
33
34
- - [ Hugo extended version] ( https://gohugo.io/getting-started/installing )
35
- - [ Node.js] ( https://nodejs.org/en/ )
34
+ This repository comes with a [ devcontainer] ( /.devcontainer/devcontainer.json ) configuration that automatically installs all the required dependencies and VSCode extensions to build and run the docs.
35
+
36
+ This devcontainer can be used to develop locally with VSCode or via GitHub Codespaces completely in the browser. Other IDEs that support [ devcontainers] ( https://containers.dev/ ) can be used but won't have the extensions preconfigured and will likely have different performance characteristics.
37
+
38
+ ### Pre-requisites
36
39
37
- ## Environment setup
40
+ - [ Docker Desktop] ( https://www.docker.com/products/docker-desktop )
41
+ - [ VSCode] ( https://code.visualstudio.com/download )
38
42
39
- 1 . Ensure pre-requisites are installed
40
- 2 . Clone this repository
43
+ ### Environment setup
44
+
45
+ 1 . [ Fork] ( https://github.com/dapr/docs/fork ) and clone this repository.
46
+
47
+ 1 . Open the forked repository in VS Code
41
48
42
49
``` sh
43
- git clone https://github.com/dapr/docs.git
50
+ code .
44
51
```
45
52
46
- 3 . Change to daprdocs directory:
53
+ 1 . When prompted, click "Reopen in Container" to open the repository in the devcontainer.
54
+
55
+ Continue with the [ Run local server] ( #run-local-server ) steps.
56
+
57
+ ## Setup without a devcontainer
58
+
59
+ ### Pre-requisites
60
+
61
+ - [ Hugo extended version] ( https://gohugo.io/getting-started/installing )
62
+ - [ Node.js] ( https://nodejs.org/en/ )
63
+
64
+ ### Environment setup
65
+
66
+ 1 . Ensure pre-requisites are installed.
67
+ 1 . [ Fork] ( https://github.com/dapr/docs/fork ) and clone this repository.
68
+
69
+ 1 . Change to daprdocs directory:
47
70
48
71
``` sh
49
72
cd ./daprdocs
@@ -63,7 +86,7 @@ npm install
63
86
64
87
## Run local server
65
88
66
- 1 . Make sure you're still in the ` daprdocs ` directory
89
+ 1 . Make sure you're in the ` daprdocs ` directory
67
90
2 . Run
68
91
69
92
``` sh
@@ -72,14 +95,13 @@ hugo server
72
95
73
96
3 . Navigate to ` http://localhost:1313/ `
74
97
75
-
76
98
## Update docs
77
99
78
- 1 . Fork repo into your account
79
- 1 . Create new branch
80
- 1 . Commit and push changes to forked branch
81
- 1 . Submit pull request from downstream branch to the upstream branch for the correct version you are targeting
82
- 1 . Staging site will automatically get created and linked to PR to review and test
100
+ 1 . Ensure you are in your forked repo
101
+ 2 . Create new branch
102
+ 3 . Commit and push changes to forked branch
103
+ 4 . Submit pull request from downstream branch to the upstream branch for the correct version you are targeting
104
+ 5 . Staging site will automatically get created and linked to PR to review and test
83
105
84
106
## Code of Conduct
85
107
0 commit comments