Commit 0ab7a2dc authored by René Schöne's avatar René Schöne
Browse files

First try of ragdoc toolchain.

parent df7c82ba
Pipeline #8704 failed with stages
in 33 seconds
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- ragdoc_build
- ragdoc_view
- publish
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
image: openjdk:11
stage: build
script:
- ./gradlew --console=plain --no-daemon assemble
artifacts:
paths:
- "src/gen"
ragdoc_build:
image: openjdk:8
stage: ragdoc_build
script:
- git clone --recurse-submodules git@git-st.inf.tu-dresden.de:jastadd/ragdoc-builder.git
- cd ragdoc-builder
- ./gradlew fatJar
- JAVA_FILES="$(find ../../src/ -name '*.java')"
- BOOT_CLASSPATH="/usr/local/openjdk-8/jre/lib/rt.jar"
- java -jar rd-builder.jar -d ../data -bootclasspath $BOOT_CLASSPATH $JAVA_FILES
artifacts:
paths:
- "data/"
ragdoc_view:
image: "node:15.6.0-buster"
stage: ragdoc_view
script:
- git clone git@git-st.inf.tu-dresden.de:jastadd/ragdoc-view.git
- cd ragdoc-view/src
- ln -s ../../data
- cd ..
- npm install
- ng build --base-href .
artifacts:
paths:
- "ragdoc-view/dist/"
pages:
image: python:3.7-alpine
stage: publish
before_script:
- pip install -U sphinx sphinx-rtd-theme recommonmark sphinxemoji sphinx-markdown-tables
script:
- mkdir -p pages/_static/ragdoc
- cp -r ragdoc-view/dist/* pages/_static/ragdoc
- sphinx-build -b html pages/ public
artifacts:
paths:
- public
only:
- master
/ragdoc-builder
/ragdoc-view
/_static/
/public/
/data/
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = public
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = 'Minimal RagConnect Example'
copyright = '2021, René Schöne, Sebastian Ebert'
author = 'René Schöne, Sebastian Ebert'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
.. Minimal RagConnect Example documentation master file, created by
sphinx-quickstart on Wed Jan 27 17:59:48 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Minimal RagConnect Example's documentation!
======================================================
.. toctree::
:maxdepth: 2
:caption: Contents:
.. .. raw:: html
.. :file: _static/ragdoc.html
some text
documentation at `ragdoc <_static/ragdoc/index.html>`_
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=public
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment