Adding docs to joinlemmy. Fixes #9

This commit is contained in:
Dessalines 2021-02-04 14:46:32 -05:00
parent 8d97b5441f
commit 2d5b662496
8 changed files with 21 additions and 6 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
public
static/docs

4
.gitmodules vendored Normal file
View file

@ -0,0 +1,4 @@
[submodule "lemmy-docs"]
path = lemmy-docs
url = https://github.com/LemmyNet/lemmy-docs
branch = main

5
build_docs.sh Executable file
View file

@ -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

2
deploy.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
ssh tyler@5.196.14.162 'cd ~/joinlemmy-site && git pull --recurse-submodules && ./build.sh'

1
lemmy-docs Submodule

@ -0,0 +1 @@
Subproject commit b9d1c108679f10720b849cae6e76c4185c778cc4

View file

@ -1,3 +1,5 @@
#!/bin/bash
./build_docs.sh
zola serve --interface 0.0.0.0

View file

@ -91,7 +91,7 @@
<a href="/join">Join</a>
<a href="/apps">Apps</a>
<a href="/sponsors">Sponsors</a>
<a href="https://lemmy.ml/docs/en/index.html">Docs</a>
<a href="/docs/en/index.html">Docs</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<a href="/contact">Contact</a>
</div>
@ -122,7 +122,7 @@
<a href="/join">Join</a>
<a href="/apps">Apps</a>
<a href="/sponsors">Sponsors</a>
<a href="https://lemmy.ml/docs/en/index.html">Docs</a>
<a href="/docs/en/index.html">Docs</a>
<a href="/coc" title="Code of Conduct">CoC</a>
<a href="/contact">Contact</a>
</div>

View file

@ -11,7 +11,7 @@
<a class="button primary" href="/join">Join a Server</a>
</div>
<div class="col-2-lg">
<a class="button primary" href="https://lemmy.ml/docs/en/administration/administration.html">Run a Server</a>
<a class="button primary" href="/docs/en/administration/administration.html">Run a Server</a>
</div>
</div>
</div>
@ -72,9 +72,9 @@
<div class="container">
<div class="text-center">
<h2>Create your own discussion platform</h2>
<p>With Lemmy, you can <a href="https://lemmy.ml/docs/en/administration/administration.html">easily host your own server</a>, and all these servers are <i>federated</i> (think email), and connected to the same universe, called the <a href="https://en.wikipedia.org/wiki/Fediverse">Fediverse</a>. 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.</p>
<p>With Lemmy, you can <a href="/docs/en/administration/administration.html">easily host your own server</a>, and all these servers are <i>federated</i> (think email), and connected to the same universe, called the <a href="https://en.wikipedia.org/wiki/Fediverse">Fediverse</a>. 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.</p>
<p>
<a class="button primary" href="https://lemmy.ml/docs/en/administration/administration.html">Run a Server</a>
<a class="button primary" href="/docs/en/administration/administration.html">Run a Server</a>
</p>
</div>
</div>
@ -108,7 +108,7 @@
<div class="col-6">
<h4 class="is-marginless">More Features</h4>
<ul class="is-marginless">
<li>Self hostable, easy to deploy, via <a href="https://lemmy.ml/docs/en/administration/install_docker.html">Docker</a>, or <a href="https://lemmy.ml/docs/en/administration/install_ansible.html">Ansible</a>.
<li>Self hostable, easy to deploy, via <a href="/docs/en/administration/install_docker.html">Docker</a>, or <a href="/docs/en/administration/install_ansible.html">Ansible</a>.
</li>
<li>Clean, mobile-friendly interface.</li>
<li>User avatar support.</li>