From 2d5b662496dcc9b712f7be15f2c115782e7d65f8 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 4 Feb 2021 14:46:32 -0500 Subject: [PATCH] Adding docs to joinlemmy. Fixes #9 --- .gitignore | 1 + .gitmodules | 4 ++++ build_docs.sh | 5 +++++ deploy.sh | 2 ++ lemmy-docs | 1 + serve.sh | 2 ++ templates/base.html | 4 ++-- templates/index.html | 8 ++++---- 8 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 .gitmodules create mode 100755 build_docs.sh create mode 100755 deploy.sh create mode 160000 lemmy-docs diff --git a/.gitignore b/.gitignore index a48cf0d..4f1f157 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ public +static/docs diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5d3babb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "lemmy-docs"] + path = lemmy-docs + url = https://github.com/LemmyNet/lemmy-docs + branch = main diff --git a/build_docs.sh b/build_docs.sh new file mode 100755 index 0000000..09786d8 --- /dev/null +++ b/build_docs.sh @@ -0,0 +1,5 @@ +cargo install mdbook \ + --git https://github.com/Nutomic/mdBook.git \ + --branch localization \ + --rev 0982a82 +mdbook build lemmy-docs -d ../static/docs diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..3f9b8be --- /dev/null +++ b/deploy.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ssh tyler@5.196.14.162 'cd ~/joinlemmy-site && git pull --recurse-submodules && ./build.sh' diff --git a/lemmy-docs b/lemmy-docs new file mode 160000 index 0000000..b9d1c10 --- /dev/null +++ b/lemmy-docs @@ -0,0 +1 @@ +Subproject commit b9d1c108679f10720b849cae6e76c4185c778cc4 diff --git a/serve.sh b/serve.sh index 15a6e4a..4ad52e4 100755 --- a/serve.sh +++ b/serve.sh @@ -1,3 +1,5 @@ #!/bin/bash +./build_docs.sh + zola serve --interface 0.0.0.0 diff --git a/templates/base.html b/templates/base.html index 8d34472..568defb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -91,7 +91,7 @@ Join Apps Sponsors - Docs + Docs CoC Contact @@ -122,7 +122,7 @@ Join Apps Sponsors - Docs + Docs CoC Contact diff --git a/templates/index.html b/templates/index.html index fe118a9..50dcfd8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -11,7 +11,7 @@ Join a Server
- Run a Server + Run a Server
@@ -72,9 +72,9 @@

Create your own discussion platform

-

With Lemmy, you can easily host your own server, and all these servers are federated (think email), and connected to the same universe, called the Fediverse. For a link aggregator, this means that someone registered on one server can subscribe to communities elsewhere, and can have discussions with people on a completely different server.

+

With Lemmy, you can easily host your own server, and all these servers are federated (think email), and connected to the same universe, called the Fediverse. For a link aggregator, this means that someone registered on one server can subscribe to communities elsewhere, and can have discussions with people on a completely different server.

- Run a Server + Run a Server

@@ -108,7 +108,7 @@

More Features