Commit 0b49ea0d authored by Marc Egger's avatar Marc Egger
Browse files

make documentation

parent 3dde35aa
Pipeline #1904 passed with stages
in 2 minutes and 37 seconds
SHELL := /bin/bash
PKG_VERSION = $(shell awk '/version/ { print $$3 }' extension/ext_emconf.php | sed "s/'//g")
NIGHTLY_DATE = $(shell date '+%Y%m%d')
......@@ -117,4 +119,9 @@ phpunit:
phpunit_snapshot: snapshot phpunit
phpunit_release: release phpunit
doc-local:
source docker/_helper_functions.sh; makePathExecutable "${PWD}/../"
docker pull t3docs/render-documentation
source <(docker run --rm t3docs/render-documentation show-shell-commands); dockrun_t3rd makehtml
xdg-open "Documentation-GENERATED-temp/Result/project/0.0.0/Index.html"
\ No newline at end of file
#!/bin/bash -ex
function getHostPort()
{
local CONTAINER_PORT="$1"
local CONTAINER="$2"
echo $(docker inspect -f "{{ (index (index .NetworkSettings.Ports \"${CONTAINER_PORT}/tcp\") 0).HostPort }}" $CONTAINER)
}
function removeContainerAfterTimeout()
{
local TIMEOUT="$1"
local CONTAINER="$2"
(sleep ${TIMEOUT} && docker rm -f ${CONTAINER})&
disown
}
function makePathExecutable()
(
cd "$(dirname "$1")"
while [[ "$PWD" != "/" ]]
do
echo "make $PWD executable"
chmod o+x . || true
cd ..
done
)
function getContainerName()
{
local CONTAINER="$1"
local CONTAINER_NAME=$(docker inspect --format="{{.Name}}" ${CONTAINER})
echo ${CONTAINER_NAME:1}
}
function addUsernameToContainerName()
{
local CONTAINER="$1"
local CONTAINER_NAME=$(getContainerName ${CONTAINER})
docker rename ${CONTAINER_NAME} ${USER}_${CONTAINER_NAME}
}
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