New build script (old deps were wonky)
This commit is contained in:
Executable
+16
@@ -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 |
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user