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.sh b/build.sh index e180e9d..6b19532 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,8 @@ #!/bin/bash +./build_docs.sh zola build + sudo mkdir -p /var/www/joinlemmy sudo rm -rf /var/www/joinlemmy/public sudo mv public /var/www/joinlemmy/ 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