Commit 5134eeb4 authored by bliss administrator's avatar bliss administrator
Browse files

Merge branch 'master' of https://gitlab.esrf.fr/tomo/ebs-tomo

parents 249edebe 975dd020
Pipeline #45654 passed with stages
in 4 minutes and 25 seconds
# Workflow determines rules for the entire pipeline
# here pipeline runs for MASTER branch
workflow:
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
default:
before_script:
# /dev/random is super slow
# https://www.tango-controls.org/community/forum/c/platforms/gnu-linux/device-server-gets-stuck-then-works-as-expected/
# https://stackoverflow.com/questions/26021181/not-enough-entropy-to-support-dev-random-in-docker-containers-running-in-boot2d
- rm /dev/random
- ln -s /dev/urandom /dev/random
# set pip cache to the Docker volume
- echo ${CI_PROJECT_DIR}
- export PIP_CACHE_DIR="/opt/cache/pip"
- /opt/conda/bin/conda init && source /root/.bashrc
- conda config --prepend channels tango-controls
- conda config --prepend channels esrf-bcu
- conda config --prepend channels conda-forge
stages:
- style
- build
- deploy
check_style_master:
stage: style
image: continuumio/miniconda3:latest
only:
- master
tags:
- bliss_master
script:
- pip install -r requirements-dev.txt
# run black
- LC_ALL=C.UTF-8 black --check --safe $(git diff origin/$COMPARE_BRANCH_NAME... --diff-filter=ACMR --name-only | grep \\.py$)
create_user_doc:
stage: build
image: continuumio/miniconda3:latest
script:
# install opengl libraries (needed to avoid problem with pyopengl dependency)
- apt-get update && apt-get -y install libgl1-mesa-glx
# create doc env and install all requirements
- conda create -q --yes --name mkdocsenv --file requirements-doc-conda.txt
- source activate mkdocsenv
# build of documentation (-s : strict : fail on warnings)
- cd doc && mkdocs build --site-dir site
artifacts:
paths:
- doc/site
expire_in: 7 days
needs: [] # this job has no dependency, will start without waiting for previous stages to complete
pages:
stage: deploy
before_script:
- ''
tags:
- conda
- linux
script:
# Preparing
- git fetch --tags
- mkdir -p public
# Make a copy of existing documentation on gitlab webpages
# Workaround as gitlab does not manage different versions of documentation
- conda install -y wget
- sh scripts/ci/gitlab-ci-docs-publish.sh master $(git tag --sort=-creatordate)
# Publishing documentation for the actual version
# if we have a tag it will be published under the intranet gitlab page under /tag/ otherwhise under /master/
- if [[ ( $CI_COMMIT_REF_NAME == master && -z $CI_COMMIT_TAG ) ]]; then export DOC_DIR='master'; else export DOC_DIR=${CI_COMMIT_TAG}; fi
#- rm -rf public/* # target dir should be cleaned at first time
- rm -rf public/${DOC_DIR}
- mkdir -p public/${DOC_DIR}/api/
- mkdir -p public/${DOC_DIR}/htmlcov/
- cp -rT doc/site public/${DOC_DIR}/
- 'cp -rT htmlcov public/${DOC_DIR}/htmlcov/ || :'
artifacts:
paths:
- public
expire_in: 7 days
only:
- tags
- master
needs: ['create_user_doc']
\ No newline at end of file
repos:
- repo: https://github.com/psf/black
rev: 18.6b4
hooks:
- id: black
language_version: python3 # Should be >= 3.6
- repo: local
hooks:
- id: flake8-diff
name: flake8-diff
description: Run flake8 linter on diff lines of stage area
language: script
entry: ./flake8-diff.sh
verbose: true # force output when the hook passes
# EBS-Tomo
Fast tomography framework written in Python with Bliss
\ No newline at end of file
Fast tomography framework written in Python with Bliss
Latest documentation can be found [here](https://tomo.gitlab-pages.esrf.fr/ebs-tomo/master/index.html)
\ No newline at end of file
......@@ -3,6 +3,14 @@ repo_name: 'tomo/ebs-tomo'
repo_url: 'https://gitlab.esrf.fr/tomo/ebs-tomo'
use_directory_urls: false
theme: readthedocs
pages:
nav:
- Overview: index.md
- Acquisition Scans: acq_scans.md
- Scans:
- Acquisition Scans: acq_scans.md
- Continuous Scan: cont_scans.md
- Step Scan: step_scans.md
- Sweep Scan: sweep_scans.md
- Dark: dark.md
- Reference: reference.md
- Sequence: sequence.md
#!/usr/bin/env bash
# Run flake8 linter on diff lines of stage area
# - never fails (always exit 0)
# => errors are reported for information purpose only
git diff --no-ext-diff --cached -U0 | flake8 --diff --exit-zero
black==18.6b4
flake8
\ No newline at end of file
# Conda requirement file
# Documentation requirements
sphinx
graphviz
pygments
markdown-inline-graphviz
markdown>=3.2
mkdocs>=1.1
mkdocs-material==5.5.14
mkdocs-material-extensions>=1.0
pymdown-extensions>=6.3
\ No newline at end of file
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Bliss documentation</title>
<link rel="shortcut icon" href="master/assets/images/favicon.png">
<!-- <script src="master/assets/javascripts/modernizr.86422ebf.js"></script> -->
<style>
/*! CSS Used from: https://bliss.gitlab-pages.esrf.fr/bliss/1.3.0/assets/stylesheets/application.adb8469c.css */
html{box-sizing:border-box;}
*,:after,:before{box-sizing:inherit;}
html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;}
body{margin:0;}
a{-webkit-text-decoration-skip:objects;}
a,input,label{-webkit-tap-highlight-color:transparent;}
a{color:inherit;text-decoration:none;}
img{border-style:none;}
input{border:0;outline:0;}
.md-icon,.md-nav__title:before{font-family:Material Icons;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;white-space:nowrap;word-wrap:normal;direction:ltr;}
.md-header-nav__button,.md-nav__title:before{display:inline-block;margin:.2rem;padding:.4rem;font-size:1.2rem;cursor:pointer;}
.md-icon--menu:before{content:"";}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
body,input{color:rgba(0,0,0,.87);font-feature-settings:"kern","liga";font-family:Helvetica Neue,Helvetica,Arial,sans-serif;}
.md-typeset{font-size:.8rem;line-height:1.6;-webkit-print-color-adjust:exact;}
.md-typeset ul{margin:1em 0;}
.md-typeset a{color:#3f51b5;word-break:break-word;}
.md-typeset a,.md-typeset a:before{-webkit-transition:color .125s;transition:color .125s;}
.md-typeset a:active,.md-typeset a:hover{color:#536dfe;}
.md-typeset ul{list-style-type:disc;}
.md-typeset ul{margin-left:.625em;padding:0;}
.md-typeset ul li{margin-bottom:.5em;margin-left:1.25em;}
.md-typeset ul li:last-child{margin-bottom:0;}
html{font-size:125%;overflow-x:hidden;}
body,html{height:100%;}
body{position:relative;font-size:.5rem;}
.md-svg{display:none;}
.md-grid{max-width:61rem;margin-right:auto;margin-left:auto;}
.md-container,.md-main{overflow:auto;}
.md-container{display:table;width:100%;height:100%;padding-top:2.4rem;table-layout:fixed;}
.md-main{display:table-row;height:100%;}
.md-main__inner{height:100%;padding-top:1.5rem;padding-bottom:.05rem;}
.md-toggle{display:none;}
.md-overlay{position:fixed;top:0;width:0;height:0;-webkit-transition:width 0s .25s,height 0s .25s,opacity .25s;transition:width 0s .25s,height 0s .25s,opacity .25s;background-color:rgba(0,0,0,.54);opacity:0;z-index:3;}
.md-flex{display:table;}
.md-flex__cell{display:table-cell;position:relative;vertical-align:top;}
.md-flex__cell--shrink{width:0;}
.md-flex__cell--stretch{display:table;width:100%;table-layout:fixed;}
.md-flex__ellipsis{display:table-cell;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
.md-content__inner{margin:0 .8rem 1.2rem;padding-top:.6rem;}
.md-content__inner:before{display:block;height:.4rem;content:"";}
.md-content__inner>:last-child{margin-bottom:0;}
.md-header{position:fixed;top:0;right:0;left:0;height:2.4rem;-webkit-transition:background-color .25s,color .25s;transition:background-color .25s,color .25s;background-color:#3f51b5;color:#fff;box-shadow:none;z-index:2;-webkit-backface-visibility:hidden;backface-visibility:hidden;}
.no-js .md-header{-webkit-transition:none;transition:none;box-shadow:none;}
.md-header[data-md-state=shadow]{-webkit-transition:background-color .25s,color .25s,box-shadow .25s;transition:background-color .25s,color .25s,box-shadow .25s;box-shadow:0 0 .2rem rgba(0,0,0,.1),0 .2rem .4rem rgba(0,0,0,.2);}
.md-header-nav{padding:0 .2rem;}
.md-header-nav__button{position:relative;-webkit-transition:opacity .25s;transition:opacity .25s;z-index:1;}
.md-header-nav__button:hover{opacity:.7;}
.md-header-nav__button.md-logo *{display:block;}
.md-header-nav__topic{display:block;position:absolute;-webkit-transition:opacity .15s,-webkit-transform .4s cubic-bezier(.1,.7,.1,1);transition:opacity .15s,-webkit-transform .4s cubic-bezier(.1,.7,.1,1);transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s;transition:transform .4s cubic-bezier(.1,.7,.1,1),opacity .15s,-webkit-transform .4s cubic-bezier(.1,.7,.1,1);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
.no-js .md-header-nav__topic{position:static;}
.md-header-nav__title{padding:0 1rem;font-size:.9rem;line-height:2.4rem;}
.md-header-nav__source{display:none;}
.md-nav__title{display:block;padding:0 .6rem;font-weight:700;text-overflow:ellipsis;overflow:hidden;}
.md-nav__title:before{display:none;content:"\E5C4";}
.md-source{display:block;padding-right:.6rem;-webkit-transition:opacity .25s;transition:opacity .25s;font-size:.65rem;line-height:1.2;white-space:nowrap;}
.md-source:hover{opacity:.7;}
.md-source:after,.md-source__icon{display:inline-block;height:2.4rem;content:"";vertical-align:middle;}
.md-source__icon{width:2.4rem;}
.md-source__icon svg{width:1.2rem;height:1.2rem;margin-top:.6rem;margin-left:.6rem;}
.md-source__icon+.md-source__repository{margin-left:-2rem;padding-left:2rem;}
.md-source__repository{display:inline-block;max-width:100%;margin-left:.6rem;font-weight:700;text-overflow:ellipsis;overflow:hidden;vertical-align:middle;}
@media print{
.md-typeset a:after{color:rgba(0,0,0,.54);content:" [" attr(href) "]";}
.md-header{display:none;}
}
@media only screen and (min-width:100em){
html{font-size:137.5%;}
}
@media only screen and (min-width:125em){
html{font-size:150%;}
}
@media only screen and (max-width:76.1875em){
[data-md-toggle=drawer]:checked~.md-overlay{width:100%;height:100%;-webkit-transition:width 0s,height 0s,opacity .25s;transition:width 0s,height 0s,opacity .25s;opacity:1;}
.md-header-nav__button.md-logo{display:none;}
}
@media only screen and (min-width:60em){
.md-content{margin-right:12.1rem;}
.md-header-nav__source{display:block;width:11.7rem;max-width:11.7rem;padding-right:.6rem;}
}
@media only screen and (min-width:76.25em){
.md-content{margin-left:12.1rem;}
.md-content__inner{margin-right:1.2rem;margin-left:1.2rem;}
.md-header-nav__button.md-icon--menu{display:none;}
}
/*! CSS Used from: https://bliss.gitlab-pages.esrf.fr/bliss/1.3.0/assets/stylesheets/application-palette.a8b3c06d.css */
[data-md-color-primary=white] .md-header{background-color:#fff;color:rgba(0,0,0,.87);}
[data-md-color-accent=light-blue] .md-typeset a:active,[data-md-color-accent=light-blue] .md-typeset a:hover{color:#0091ea;}
/*! CSS Used from: Embedded */
body,input{font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;}
/*! CSS Used from: Embedded */
li:first-child a::before{content:'Latest (';}
li:first-child a::after{content:')';}
/*! CSS Used fontfaces */
@font-face{font-family:"Material Icons";font-style:normal;font-weight:400;src:local("Material Icons"),local("MaterialIcons-Regular"),url("https://bliss.gitlab-pages.esrf.fr/bliss/1.3.0/assets/fonts/specimen/MaterialIcons-Regular.woff2") format("woff2"),url("https://bliss.gitlab-pages.esrf.fr/bliss/1.3.0/assets/fonts/specimen/MaterialIcons-Regular.woff") format("woff"),url("https://bliss.gitlab-pages.esrf.fr/bliss/1.3.0/assets/fonts/specimen/MaterialIcons-Regular.ttf") format("truetype");}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2) format('woff2');unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2) format('woff2');unicode-range:U+0370-03FF;}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2) format('woff2');unicode-range:U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:fallback;src:local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xIIzI.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:fallback;src:local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');unicode-range:U+0370-03FF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');unicode-range:U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:fallback;src:local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:fallback;src:local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
</style>
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
<style>body,input{font-family:"Roboto","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
<style>
li:first-child a::before {
content: 'Latest ('
}
li:first-child a::after {
content: ')'
}
</style>
</head>
<body dir="ltr" data-md-color-primary="white" data-md-color-accent="light-blue">
<svg class="md-svg">
<defs>
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500" id="__gitlab"><path fill="currentColor" d="M93.667 473.347l90.684-279.097H2.983l90.684 279.097z" transform="translate(156.198 1.16)"/><path fill="currentColor" d="M221.333 473.345L130.649 194.25H3.557l217.776 279.095z" transform="translate(28.531 1.16)" opacity=".7"/><path fill="currentColor" d="M32 195.155L4.441 279.97a18.773 18.773 0 0 0 6.821 20.99l238.514 173.29L32 195.155z" transform="translate(.089 .256)" opacity=".5"/><path fill="currentColor" d="M2.667-84.844h127.092L75.14-252.942c-2.811-8.649-15.047-8.649-17.856 0L2.667-84.844z" transform="translate(29.422 280.256)"/><path fill="currentColor" d="M2.667 473.345L93.351 194.25h127.092L2.667 473.345z" transform="translate(247.198 1.16)" opacity=".7"/><path fill="currentColor" d="M221.334 195.155l27.559 84.815a18.772 18.772 0 0 1-6.821 20.99L3.557 474.25l217.777-279.095z" transform="translate(246.307 .256)" opacity=".5"/><path fill="currentColor" d="M130.667-84.844H3.575l54.618-168.098c2.811-8.649 15.047-8.649 17.856 0l54.618 168.098z" transform="translate(336.974 280.256)"/></svg>
</defs>
</svg>
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
<header class="md-header" data-md-component="header" data-md-state="shadow">
<nav class="md-header-nav md-grid">
<div class="md-flex">
<div class="md-flex__cell md-flex__cell--shrink">
<a href="." title="Bliss documentation" aria-label="Bliss documentation" class="md-header-nav__button md-logo">
<img alt="logo" src="master/bliss_logo_small.svg" width="24" height="24">
</a>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
</div>
<div class="md-flex__cell md-flex__cell--stretch">
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
<span class="md-header-nav__topic"> Bliss documentation </span>
</div>
</div>
<div class="md-flex__cell md-flex__cell--shrink">
<div class="md-header-nav__source">
<a href="https://gitlab.esrf.fr/bliss/bliss" title="Go to repository" class="md-source" data-md-source="gitlab">
<div class="md-source__icon">
<svg viewBox="0 0 24 24" width="24" height="24">
<use xlink:href="#__gitlab" width="24" height="24"></use>
</svg>
</div>
<div class="md-source__repository">
bliss/bliss
</div>
</a>
</div>
</div>
</div>
</nav>
</header>
<div class="md-container">
<main class="md-main" role="main">
<div class="md-main__inner md-grid" data-md-component="container">
<div class="md-content">
<article class="md-content__inner md-typeset">
<span class="md-nav__title">Version</span>
<ul>
TEXT_TO_BE_REPLACED
</ul>
</article>
</div>
</div>
</main>
</body>
</html>
\ No newline at end of file
ADDRESS="https://mammeri.gitlab-pages.esrf.fr/ebs-tomo"
cp scripts/ci/doc-index-template.html public/index.html
version_links=""
for bliss_tag in $@
do
echo "LOOKING FOR $bliss_tag"
# older published versions are not accessible via filesystem, must redownload them
wget --recursive --page-requisites --html-extension --convert-links --cut-dirs=1 --no-parent --no-host-directories "$ADDRESS/$bliss_tag/" -P ./public
# also download search index for the search bar to work
wget "$ADDRESS/$bliss_tag/search/search_index.json" -P ./public/$bliss_tag/search/
# also download search worker (url can be found in index.html, but hash should not change due to requirement fixed to mkdocs-material==5.5.14)
wget "$ADDRESS/$bliss_tag/assets/javascripts/worker/search.5eca75d3.min.js" -P ./public/$bliss_tag/search/
if [ -e ./public/$bliss_tag ]; then
version_links=$version_links"<li><a href=\"$bliss_tag/\">$bliss_tag</a></li>\n"
fi
done
sed -i "s|TEXT_TO_BE_REPLACED|${version_links}|" public/index.html
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