Skip to content

Commit

Permalink
Tryout of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronix committed Jan 14, 2025
1 parent df3c233 commit cc20400
Show file tree
Hide file tree
Showing 5 changed files with 36,933 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate MkDocs and upload

on:
push:
branches:
- docs
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs
sudo apt-get update
sudo apt-get install -y lftp
- name: Build MkDocs site
run: |
mkdocs build
- name: Upload HTML files to FTP server
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: |
lftp -e "mirror -R site/ /home/godesig/www/docs.hashtopolis.org/; quit" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_SERVER
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ vendor
# For python cache files
__pycache__
.pytest_cache

site/
14 changes: 14 additions & 0 deletions doc/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Installation Guidelines
## Basic installation
### Server installation

_NOTE: The instructions provided in this section have only been tested on Ubuntu 22.04 and Windows 11 with WSL2_

To install Hashtopolis server, ensure that the following prerequisites are met:
1. *Docker*: Follow the instructions available on the Docker website:
- Install Docker on Ubuntu
- Install Docker on Windows
2. *Docker Compose v2*: Follow the instructions available on the Docker website:
- [Install Docker Compose on Linux](https://docs.docker.com/compose/install/linux/#install-using-the-repository)


8 changes: 8 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
site_name: Hashtopolis
site_url: https://docs.hashtopolis.org
repo_url: https://github.com/hashtopolis/server
docs_dir: doc
theme:
name: readthedocs
nav:
- 'install.md'
Loading

0 comments on commit cc20400

Please sign in to comment.