Skip to content

Commit a3a7758

Browse files
committed
[TASK] Switch to PHP-based Documentation Rendering
Resolves: #39 Releases: 4.0.0
1 parent 771f3c7 commit a3a7758

8 files changed

Lines changed: 59 additions & 31 deletions

File tree

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,8 @@ indent_size = 4
6969

7070
[*.neon]
7171
indent_style = tab
72+
73+
# Makefile
74+
[{Makefile,**.mk}]
75+
# Use tabs for indentation (Makefiles require tabs)
76+
indent_style = tab
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test documentation
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
tests:
7+
name: documentation
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Test if the documentation will render without warnings
14+
run: |
15+
mkdir -p Documentation-GENERATED-temp \
16+
&& docker run --rm --pull always -v $(pwd):/project \
17+
ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --minimal-test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ config/
44
var/
55
*.cache
66
composer.lock
7+
.idea/
8+
Documentation-GENERATED-temp/

Documentation/Includes.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
.. This is 'Includes.txt'. It is included at the very top of each and
2-
.. every ReST source file in this documentation project (= manual).
3-
4-
.. role:: typoscript(code)
5-
6-
.. role:: ts(typoscript)
7-
:class: typoscript
8-
9-
.. role:: php(code)
10-
11-
.. highlight:: php
12-
13-
.. default-role:: code
1+
.. You can put central messages to display on all pages here

Documentation/Index.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,3 @@ a GNU/GPL CMS/Framework available from http://typo3.org
5151

5252
Introduction/Index
5353
Installation/Index
54-
Configuration/Index
55-
Breaking/Index
56-
Testing/Index

Documentation/Settings.cfg

Lines changed: 0 additions & 15 deletions
This file was deleted.

Documentation/guides.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<guides xmlns="https://www.phpdoc.org/guides"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.phpdoc.org/guides ../vendor/phpdocumentor/guides-cli/resources/schema/guides.xsd"
5+
links-are-relative="true"
6+
>
7+
<extension class="\T3Docs\Typo3DocsTheme\DependencyInjection\Typo3DocsThemeExtension"
8+
project-home="https://github.com/evoWeb/sessionplaner"
9+
project-repository="https://github.com/evoWeb/sessionplaner"
10+
project-issues="https://github.com/evoWeb/sessionplaner/issues"
11+
edit-on-github-branch="develop"
12+
edit-on-github="evoweb/sessionplaner"
13+
typo3-core-preferred="stable"
14+
interlink-shortcode="evoweb/sessionplaner"
15+
/>
16+
<project title="sessionplaner"
17+
release="4.0.0"
18+
copyright="since 2013 by evoWeb"
19+
/>
20+
</guides>

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: help
2+
help: ## Displays this list of targets with descriptions
3+
@echo "The following commands are available:\n"
4+
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
5+
6+
.PHONY: docs
7+
docs: ## Generate projects documentation (from "Documentation" directory)
8+
mkdir -p Documentation-GENERATED-temp
9+
docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
10+
11+
.PHONY: test-docs
12+
test-docs: ## Test the documentation rendering
13+
mkdir -p Documentation-GENERATED-temp
14+
docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --minimal-test

0 commit comments

Comments
 (0)