File tree Expand file tree Collapse file tree 4 files changed +31
-33
lines changed Expand file tree Collapse file tree 4 files changed +31
-33
lines changed Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+ SHELL := /bin/bash
15
+
16
+ # Install dependencies
17
+ .PHONY : install
18
+ install :
19
+ # Create python virtual environment
20
+ python3 -m venv venv/
21
+
22
+ # Active virtual environment
23
+ source ./venv/bin/activate
24
+
25
+ # Install python depdendencies
26
+ pip install -r requirements.txt
27
+
14
28
15
29
# Build the documentation.
16
30
.PHONY : docs
20
34
21
35
# Generate docs with mkdocs
22
36
mkdocs build
37
+
38
+
39
+ # Cleanup local directory
40
+ .PHONY : cleanup
41
+ cleanup :
42
+ # Remove python virtual environment
43
+ rm -rf venv
44
+
45
+ # Remove site build
46
+ rm -rf site
Original file line number Diff line number Diff line change @@ -22,26 +22,17 @@ Participation in the Kubernetes community is governed by the [Kubernetes Code of
22
22
23
23
## Install and run
24
24
25
- Install Python and the requirements.
25
+ Install Python and the requirements for this site using the included ` Makefile ` .
26
26
27
27
```
28
- python3 -m venv venv/
29
- source venv/bin/activate
30
- pip install -r requirements.txt
28
+ make install
31
29
```
32
30
33
- Install the mkdocs plugins
34
-
35
- ```
36
- pip install mkdocs-awesome-pages-plugin
37
- pip install mkdocs-macros-plugin
38
- pip install mkdocs-redirects
39
- ```
40
31
Use the mkdocs CLI to serve a development version of the site.
41
32
42
33
``` mkdocs serve ```
43
34
44
- Navigate to localhost:8000 to see the site.
35
+ Navigate to ` localhost:8000 ` to see the site.
45
36
46
37
## Build and deploy
47
38
Original file line number Diff line number Diff line change 3
3
command = " make docs"
4
4
publish = " site"
5
5
environment = { PYTHON_VERSION = " 3.8" }
6
-
7
- # Standard Netlify redirects
8
- [[redirects ]]
9
- from = " https://main--kubernetes-sigs-multicluster.netlify.com/*"
10
- to = " https://main.multicluster.sigs.k8s.io/:splat"
11
- status = 301
12
- force = true
13
-
14
- # HTTP-to-HTTPS rules
15
- [[redirects ]]
16
- from = " http://main.multicluster.sigs.k8s.io/*"
17
- to = " https://main.multicluster.sigs.k8s.io/:splat"
18
- status = 301
19
- force = true
20
-
21
- [[redirects ]]
22
- from = " http://main--kubernetes-sigs-multicluster.netlify.com/*"
23
- to = " http://main.multicluster.sigs.k8s.io/:splat"
24
- status = 301
25
- force = true
Original file line number Diff line number Diff line change 1
- mkdocs-material
1
+ mkdocs-material
2
+ mkdocs-awesome-pages-plugin
3
+ mkdocs-macros-plugin
4
+ mkdocs-redirects
You can’t perform that action at this time.
0 commit comments