New build script (old deps were wonky)

This commit is contained in:
2024-11-22 14:31:15 +09:00
parent 1cff73c0e5
commit 543a304a43
5 changed files with 54 additions and 87 deletions
+16
View File
@@ -0,0 +1,16 @@
#! /usr/bin/bash
if mkdocs=$(command -v mkdocs)
then
echo "mkdocs found at $mkdocs"
else
echo "Could not find a mkdocs installation!"
echo "mkdocs must be installed and available in \$PATH to proceed."
exit 95
fi
rm docs/*.md
cp ../docs/*.md docs/
cp ../CHANGELOG.md docs/
mkdocs build
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

-7
View File
@@ -1,7 +0,0 @@
import glob
import shutil
def pre_build(**kwargs):
for file in glob.glob('../docs/*.md'):
shutil.copy(file, 'docs')
shutil.copy('../CHANGELOG.md', 'docs')
+19 -18
View File
@@ -1,10 +1,7 @@
site_name: æternity Sophia Language
site_name: Sophia Language
plugins:
- search
- mkdocs-simple-hooks:
hooks:
on_pre_build: 'hook:pre_build'
repo_url: 'https://github.com/aeternity/aesophia'
repo_url: 'https://gitlab.com/ioecs/aesophia'
edit_uri: ''
extra:
@@ -13,22 +10,23 @@ extra:
theme:
favicon: favicon.png
name: material
# name: material
name: mkdocs
custom_dir: overrides
language: en
palette:
- scheme: default
primary: pink
accent: pink
toggle:
icon: material/weather-night
name: Switch to dark mode
- scheme: slate
primary: pink
accent: pink
toggle:
icon: material/weather-sunny
name: Switch to light mode
# - scheme: default
primary: green
# accent: green
# toggle:
# icon: material/weather-night
# name: Switch to dark mode
# - scheme: slate
# primary: green
# accent: green
# toggle:
# icon: material/weather-sunny
# name: Switch to light mode
features:
- content.tabs.link
- search.highlight
@@ -52,4 +50,7 @@ nav:
- Features: sophia_features.md
- Standard library: sophia_stdlib.md
- Contract examples: sophia_examples.md
- ACI Module: aeso_aci.md
- Compiler Module: aeso_compiler.md
- Sophia: sophia.md
- Changelog: CHANGELOG.md