More documentation fixes.

This commit is contained in:
Martín Lucas Golini
2020-04-05 20:24:37 -03:00
parent ffc8fd3953
commit 75d940da8f
4 changed files with 249 additions and 120 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -187,6 +187,8 @@ Important CSS3 features that are currently supported:
* [Most of the background properties](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
See the [CSS Specification](docs/articles/cssspecification.md) for more information.
## Write the CSS
Following [Load the XML Layout Resource](#load-the-xml-layout-resource) we are

View File

@@ -8,6 +8,7 @@ clean:
doxygen:
cd ../../ && doxygen Doxyfile
sh fix_md_files.sh
doxyrest: doxygen
doxyrest -c doxyrest-config.lua

27
docs/doxyrest/fix_md_files.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}
cd ../articles
DIR=`pwd`
NAME="md_$(echo ${DIR} | sed -e 's/\//_/g')_"
echo "Replace files with \"${NAME}\""
cd ../xml
find . -type f -name "*${NAME}*" | while read FILE ; do
echo "Renaming ${FILE}"
newfile="$(echo ${FILE} | sed -e "s/${NAME}//g")";
echo "New file ${newfile}";
mv "${FILE}" "${newfile}";
done
find . -name '*.xml' -exec sed -i -e "s/${NAME}//g" {} \;