mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-31 23:19:32 +00:00
Compare commits
5 Commits
clover-doc
...
fix-build
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
577da606d5 | ||
|
|
caf1f4c29d | ||
|
|
65a6369359 | ||
|
|
fd2814b66a | ||
|
|
63e7f9cf07 |
23
.github/workflows/docs-docker.yaml
vendored
23
.github/workflows/docs-docker.yaml
vendored
@@ -1,23 +0,0 @@
|
||||
name: Build docs Docker image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ '*' ]
|
||||
|
||||
jobs:
|
||||
docs-docker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t clover-docs:latest docs
|
||||
|
||||
- name: Test Docker image
|
||||
run: docker run -t --rm -v `pwd`:/clover clover-docs:latest
|
||||
|
||||
- name: Show results
|
||||
run: |
|
||||
ls -lh _book
|
||||
ls -lh *.pdf
|
||||
@@ -30,6 +30,7 @@ import tf2_geometry_msgs
|
||||
|
||||
import VL53L1X
|
||||
import pymavlink
|
||||
import lxml
|
||||
from pymavlink import mavutil
|
||||
import rpi_ws281x
|
||||
import pigpio
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
<depend>rosbridge_server</depend>
|
||||
<depend>web_video_server</depend>
|
||||
<depend>tf2_web_republisher</depend>
|
||||
<depend condition="$ROS_PYTHON_VERSION == 2">python-lxml</depend>
|
||||
<depend condition="$ROS_PYTHON_VERSION == 3">python3-lxml</depend>
|
||||
<depend>dynamic_reconfigure</depend>
|
||||
<exec_depend>python-pymavlink</exec_depend>
|
||||
<!-- Use test_depend for packages you need only for testing: -->
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
# Build: sudo docker build -t clover-docs:latest .
|
||||
|
||||
# Run: docker run -it --rm -v ~/clover:/clover clover-docs:latest
|
||||
|
||||
# Save image: sudo docker save clover-docs:latest | gzip > clover-docs.tar.gz
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y curl git
|
||||
|
||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
|
||||
RUN . $HOME/.nvm/nvm.sh && nvm install 10.15 && nvm use 10.15 && npm --version
|
||||
|
||||
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y calibre msttcorefonts ghostscript
|
||||
|
||||
RUN . $HOME/.nvm/nvm.sh && curl https://raw.githubusercontent.com/CopterExpress/clover/master/builder/assets/install_gitbook.sh | bash
|
||||
|
||||
# RUN . $HOME/.nvm/nvm.sh && npm install markdownlint-cli@0.28.1 -g && PUPPETEER_SKIP_DOWNLOAD=1 npm install svgexport -g
|
||||
RUN . $HOME/.nvm/nvm.sh && npm install markdownlint-cli@0.28.1 -g && npm install svgexport -g --unsafe-perm
|
||||
|
||||
RUN . $HOME/.nvm/nvm.sh && node -v && gitbook -V && markdownlint -V
|
||||
|
||||
RUN curl https://raw.githubusercontent.com/CopterExpress/clover/master/book.json > book.json
|
||||
|
||||
RUN . $HOME/.nvm/nvm.sh && gitbook install
|
||||
|
||||
CMD . $HOME/.nvm/nvm.sh && export QTWEBENGINE_DISABLE_SANDBOX=1 && cp -r node_modules /clover && cd /clover && gitbook build \
|
||||
&& gitbook pdf ./ _book/clover.pdf && \
|
||||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=_book/clover_ru_compressed.pdf _book/clover_ru.pdf && \
|
||||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=_book/clover_en_compressed.pdf _book/clover_en.pdf && \
|
||||
rm _book/clover_ru.pdf && mv _book/clover_ru_compressed.pdf _book/clover_ru.pdf && \
|
||||
rm _book/clover_en.pdf && mv _book/clover_en_compressed.pdf _book/clover_en.pdf
|
||||
Reference in New Issue
Block a user