git ready for CI

pull/6/head
kc1awv 2020-09-15 11:41:30 -04:00
parent 10f16f2ed5
commit 6b038fdf71
4 changed files with 30 additions and 17 deletions

14
.drone.yml 100644
View File

@ -0,0 +1,14 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker-user
password:
from_secret: docker-password
custom_dns: [ 192.168.1.1 ]
repo: registry.m17project.org/m17/m17-spec
registry: registry.m17project.org
tags: latest

13
Dockerfile 100644
View File

@ -0,0 +1,13 @@
FROM alpine
RUN apk add git
RUN git clone https://git.m17project.org/kc1awv/M17_spec.git
FROM sphinxdoc/sphinx
COPY --from=0 M17_spec /docs
RUN pip install -r docs/requirements.txt
RUN cd docs && make html
FROM nginx:alpine
COPY --from=1 /docs/docs/_build/html /usr/share/nginx/html

View File

@ -1,10 +1,5 @@
.. M17 Protocol Specification documentation master file, created by
sphinx-quickstart on Sun Aug 30 21:22:54 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to M17 Protocol Specification's documentation!
======================================================
M17 Protocol Specification
==========================
.. toctree::
:maxdepth: 2
@ -26,13 +21,3 @@ Welcome to M17 Protocol Specification's documentation!
address_encoding
decorrelator
interleaving
.. only:: html
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

View File

@ -1 +1,2 @@
sphinx_rst_theme
sphinxcontrib-svg2pdfconverter>=1.1.0