Move docs to luacs-docs/{lua,cs,landing-page}
luacs-docs/cs also has a proper http server for testing locally
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
if ((Get-Command "doxgen" -ErrorAction SilentlyContinue) -eq $null) {
|
||||
echo "doxygen not found"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Remove-Item -Force -Recurse ./build | Out-Null
|
||||
New-Item -ItemType Directory ./build | Out-Null
|
||||
New-Item -ItemType Directory ./build/baro-server | Out-Null
|
||||
New-Item -ItemType Directory ./build/baro-client | Out-Null
|
||||
|
||||
echo "Building server docs"
|
||||
try {
|
||||
Change-Location ./baro-server
|
||||
doxygen ./Doxyfile
|
||||
} finally {
|
||||
Restore-Location
|
||||
}
|
||||
|
||||
echo "Building client docs"
|
||||
try {
|
||||
Change-Location ./baro-client
|
||||
doxygen ./Doxyfile
|
||||
} finally {
|
||||
Restore-Location
|
||||
}
|
||||
|
||||
echo "Building shared docs"
|
||||
doxygen ./Doxyfile
|
||||
} finally {
|
||||
Restore-Location
|
||||
}
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
cd "$DIR/.."
|
||||
|
||||
if ! command -v "doxygen" &> /dev/null; then
|
||||
echo "doxygen not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf ./build
|
||||
mkdir -p ./build
|
||||
mkdir -p ./build/baro-server
|
||||
mkdir -p ./build/baro-client
|
||||
|
||||
echo "Building server docs"
|
||||
(
|
||||
cd ./baro-server
|
||||
doxygen ./Doxyfile
|
||||
)
|
||||
|
||||
echo "Building client docs"
|
||||
(
|
||||
cd ./baro-client
|
||||
doxygen ./Doxyfile
|
||||
)
|
||||
|
||||
echo "Building shared docs"
|
||||
doxygen ./Doxyfile
|
||||
@@ -0,0 +1,18 @@
|
||||
Import-Module $PSScriptRoot/../../scripts/location.ps1
|
||||
|
||||
try {
|
||||
Change-Location $PSScriptRoot/..
|
||||
|
||||
if ((Get-Command "python3" -ErrorAction SilentlyContinue) -eq $null) {
|
||||
echo "python3 not found"
|
||||
exit 1
|
||||
}
|
||||
|
||||
python3 ../scripts/http_server.py ./build `
|
||||
--port 8001 `
|
||||
--route /:html `
|
||||
--route /baro-client:baro-client `
|
||||
--route /baro-server:baro-server
|
||||
} finally {
|
||||
Restore-Location
|
||||
}
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
cd "$DIR/.."
|
||||
|
||||
if ! command -v "python3" &> /dev/null; then
|
||||
echo "python3 not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python3 ../scripts/http_server.py ./build \
|
||||
--port 8001 \
|
||||
--route /:html \
|
||||
--route /baro-client:baro-client \
|
||||
--route /baro-server:baro-server
|
||||
Reference in New Issue
Block a user