-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8dd4a4
commit f21eefb
Showing
127 changed files
with
3,005 additions
and
5,354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/public | ||
/site | ||
/.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
QWC Site | ||
======== | ||
QWC2 Documentation | ||
================== | ||
|
||
Homepage and documentation of QWC2 and QWC Services. | ||
Work in progress. | ||
|
||
Build | ||
===== | ||
|
||
Development | ||
----------- | ||
Full build, fetching the service configuration schemas and plugin reference: | ||
|
||
Requires [Hugo](https://gohugo.io/). | ||
./build.sh --update | ||
|
||
Get site code: | ||
Build using previously downloaded service configuration schemas and plugin reference: | ||
|
||
git clone --recursive https://github.com/qwc-services/qwc-services.github.io.git | ||
|
||
Run Hugo: | ||
|
||
hugo serve | ||
./build.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
echo "* Setting up venv..." | ||
rm -rf .venv | ||
python3 -mvenv .venv | ||
source .venv/bin/activate | ||
pip install -r requirements.txt | ||
|
||
if [ "$1" == "--update" ]; then | ||
echo "# References" > src/references/index.md | ||
echo "" >> src/references/index.md | ||
|
||
echo "* Downloading plugin reference..." | ||
wget -q -O src/references/qwc2_plugins.md https://raw.githubusercontent.com/qgis/qwc2-demo-app/master/doc/src/plugins.md | ||
echo "* [QWC2 plugins](qwc2_plugins.md)" >> src/references/index.md | ||
|
||
mkdir -p tmp | ||
echo "* Downloading schema versions..." | ||
wget -q -O tmp/schema-versions-master.json https://github.com/qwc-services/qwc-config-generator/raw/master/schemas/schema-versions-master.json | ||
|
||
for schemaUrl in \ | ||
https://github.com/qwc-services/qwc-config-generator/raw/master/schemas/qwc-config-generator.json \ | ||
$(cat tmp/schema-versions-master.json | grep schema_url | awk -F'"' '{print $4}'); | ||
do | ||
service=$(basename ${schemaUrl%.json}) | ||
echo "* Generating service schema reference for $service..." | ||
echo $schemaUrl | ||
wget -q -O tmp/$service.json $schemaUrl | ||
generate-schema-doc tmp/$service.json src/references/$service.md | ||
|
||
echo "* [$service]($service.md)" >> src/references/index.md | ||
|
||
done | ||
rm -rf tmp | ||
fi | ||
|
||
echo "* Clean previous HTML build..." | ||
rm -rf site | ||
|
||
echo "* Building HTML..." | ||
mkdocs build -f qwc2.yml | ||
|
||
# cleanup venv | ||
echo "* Clean venv..." | ||
deactivate | ||
rm -rf .venv |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.