2
0
Эх сурвалжийг харах

docs: remove frontmatter

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
Lucas Servén Marín 6 жил өмнө
parent
commit
72f5107979

+ 4 - 4
Makefile

@@ -201,12 +201,12 @@ header: .header
 	fi
 
 website/docs/README.md: README.md
-	rm -rf website/docs
-	mkdir website/docs
-	find docs  -type f -name '*.md' | xargs -I{} ln {} website/{}
 	rm -rf website/static/img/graphs
+	find docs  -type f -name '*.md' | xargs -I{} sh -c 'cat $(@D)/$$(basename {} .md) > website/{}'
+	find docs  -type f -name '*.md' | xargs -I{} sh -c 'cat {} >> website/{}'
+	cat $(@D)/$$(basename $@ .md) > $@
+	cat README.md >> $@
 	cp -r docs/graphs website/static/img/
-	cp README.md website/docs/
 	sed -i 's/\.\/docs\///g' $@
 	find $(@D)  -type f -name '*.md' | xargs -I{} sed -i 's/\.\//\/img\//g' {}
 	sed -i 's/graphs\//\/img\/graphs\//g' $@

+ 0 - 7
README.md

@@ -1,10 +1,3 @@
----
-id: introduction
-title: Introduction
-hide_title: true
-custom_edit_url: https://github.com/squat/kilo/edit/master/README.md
----
-
 <p align="center"><img src="./kilo.svg" width="150" /></p>
 
 # Kilo

+ 0 - 6
docs/annotations.md

@@ -1,9 +1,3 @@
----
-id: annotations
-title: Annotations
-hide_title: true
----
-
 # Annotations
 
 The following annotations can be added to any Kubernetes Node object to configure the Kilo network.

+ 0 - 5
docs/kgctl.md

@@ -1,8 +1,3 @@
----
-id: kgctl
-hide_title: true
----
-
 # kgctl
 
 Kilo provides a command line tool for inspecting and interacting with clusters: `kgctl`.

+ 0 - 6
docs/multi-cluster-services.md

@@ -1,9 +1,3 @@
----
-id: multi-cluster-services
-title: Multi-cluster Services
-hide_title: true
----
-
 # Multi-cluster Services
 
 Just as Kilo can connect a Kubernetes cluster to external services over WireGuard, it can connect multiple independent Kubernetes clusters.

+ 0 - 6
docs/topology.md

@@ -1,9 +1,3 @@
----
-id: topology
-title: Topology
-hide_title: true
----
-
 # Topology
 
 Kilo allows the topology of the encrypted network to be customized.

+ 0 - 6
docs/vpn-server.md

@@ -1,9 +1,3 @@
----
-id: vpn-server
-title: VPN Sever
-hide_title: true
----
-
 # VPN Server
 
 The cluster VPN created by Kilo can also be used by peers as a gateway to access the Internet.

+ 0 - 6
docs/vpn.md

@@ -1,9 +1,3 @@
----
-id: vpn
-title: VPN
-hide_title: true
----
-
 # VPN
 
 Kilo enables peers outside of a Kubernetes cluster to connect to the created WireGuard network.

+ 1 - 1
website/.gitignore

@@ -2,7 +2,7 @@
 /node_modules
 
 # Production
-/docs
+/docs/*.md
 /build
 /static/img/graphs
 

+ 6 - 0
website/docs/README

@@ -0,0 +1,6 @@
+---
+id: introduction
+title: Introduction
+hide_title: true
+custom_edit_url: https://github.com/squat/kilo/edit/master/README.md
+---

+ 5 - 0
website/docs/annotations

@@ -0,0 +1,5 @@
+---
+id: annotations
+title: Annotations
+hide_title: true
+---

+ 4 - 0
website/docs/kgctl

@@ -0,0 +1,4 @@
+---
+id: kgctl
+hide_title: true
+---

+ 5 - 0
website/docs/multi-cluster-services

@@ -0,0 +1,5 @@
+---
+id: multi-cluster-services
+title: Multi-cluster Services
+hide_title: true
+---

+ 5 - 0
website/docs/topology

@@ -0,0 +1,5 @@
+---
+id: topology
+title: Topology
+hide_title: true
+---

+ 5 - 0
website/docs/vpn

@@ -0,0 +1,5 @@
+---
+id: vpn
+title: VPN
+hide_title: true
+---

+ 5 - 0
website/docs/vpn-server

@@ -0,0 +1,5 @@
+---
+id: vpn-server
+title: VPN Sever
+hide_title: true
+---