Skip to content

Commit

Permalink
Generating Moon docs in Moon source code instead
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Mar 26, 2024
1 parent 0d4b578 commit fdf5e11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
6 changes: 0 additions & 6 deletions ci/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ echo "Removing existing files"
mkdir -p ${OUTPUT_DIR}
rm -Rf ${OUTPUT_DIR}/*.pdf

echo "Generating docs"
set -x
cd "$SOURCE_DIR" && ls *.adoc | while read file; do
docker run --rm --pull always -v "$OUTPUT_DIR:/output" -v "$SOURCE_DIR:/source" asciidoctor/docker-asciidoctor:1 asciidoctor-pdf -a "revnumber=$TAG" -D /output "/source/$file"
done

echo "Uploading site to S3"
cd ${GITHUB_WORKSPACE}/dist
key="moon/"
Expand Down
17 changes: 11 additions & 6 deletions site/data/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,27 @@
{
"title": "Описание жизненного цикла",
"description": "Основные этапы жизненного цикла Moon",
"url": "docs/lifecycle.pdf"
"url": "latest/lifecycle.pdf"
},
{
"title": "Инструкция по установке",
"description": "Подробное руководство по установке Moon 1.x",
"url": "docs/setup.pdf"
"description": "Подробное руководство по установке",
"url": "latest/setup.pdf"
},
{
"title": "Общее руководство",
"description": "Руководство по эксплуатации и использованию Moon 1.x",
"url": "docs/main.pdf"
"description": "Руководство по эксплуатации и использованию",
"url": "latest/main.pdf"
},
{
"title": "Лицензионное соглашение",
"description": "Типовое лицензионное соглашение на Moon",
"url": "docs/license-agreement.pdf"
"url": "latest/license-agreement.pdf"
},
{
"title": "Полная документация",
"description": "Полная документация по продукту в формате HTML",
"url": "latest/"
}
]
}

0 comments on commit fdf5e11

Please sign in to comment.