Skip to content

Commit cc20400

Browse files
committed
Tryout of documentation
1 parent df3c233 commit cc20400

File tree

5 files changed

+36933
-0
lines changed

5 files changed

+36933
-0
lines changed

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Generate MkDocs and upload
2+
3+
on:
4+
push:
5+
branches:
6+
- docs
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.10
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install mkdocs
22+
sudo apt-get update
23+
sudo apt-get install -y lftp
24+
25+
- name: Build MkDocs site
26+
run: |
27+
mkdocs build
28+
- name: Upload HTML files to FTP server
29+
env:
30+
FTP_SERVER: ${{ secrets.FTP_SERVER }}
31+
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
32+
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
33+
run: |
34+
lftp -e "mirror -R site/ /home/godesig/www/docs.hashtopolis.org/; quit" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_SERVER

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ vendor
2525
# For python cache files
2626
__pycache__
2727
.pytest_cache
28+
29+
site/

doc/install.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Installation Guidelines
2+
## Basic installation
3+
### Server installation
4+
5+
_NOTE: The instructions provided in this section have only been tested on Ubuntu 22.04 and Windows 11 with WSL2_
6+
7+
To install Hashtopolis server, ensure that the following prerequisites are met:
8+
1. *Docker*: Follow the instructions available on the Docker website:
9+
- Install Docker on Ubuntu
10+
- Install Docker on Windows
11+
2. *Docker Compose v2*: Follow the instructions available on the Docker website:
12+
- [Install Docker Compose on Linux](https://docs.docker.com/compose/install/linux/#install-using-the-repository)
13+
14+

mkdocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
site_name: Hashtopolis
2+
site_url: https://docs.hashtopolis.org
3+
repo_url: https://github.com/hashtopolis/server
4+
docs_dir: doc
5+
theme:
6+
name: readthedocs
7+
nav:
8+
- 'install.md'

0 commit comments

Comments
 (0)