Skip to content

Commit 9c2a2c6

Browse files
authored
Merge pull request #53 from Alagts/task-rendering
[TASK] Switch Documentation Rendering to PHP
2 parents 40b326c + f696808 commit 9c2a2c6

File tree

7 files changed

+61
-71
lines changed

7 files changed

+61
-71
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ trim_trailing_whitespace = true
1818
indent_style = space
1919
indent_size = 4
2020
max_line_length = 80
21+
22+
# Makefile
23+
[{Makefile,**.mk}]
24+
# Use tabs for indentation (Makefiles require tabs)
25+
indent_style = tab
+17
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 --fail-on-log

Documentation/Index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ own extension, which got its own public repository.
5454
:hidden:
5555

5656
Sitemap
57-
genindex

Documentation/Settings.cfg

-63
This file was deleted.

Documentation/genindex.rst

-7
This file was deleted.

Documentation/guides.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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://extensions.typo3.org/extension/jumpurl"
9+
project-contact="https://typo3.slack.com/archives/C025BQLFA"
10+
project-repository="https://github.com/FriendsOfTYPO3/jumpurl"
11+
project-issues="https://github.com/FriendsOfTYPO3/jumpurl/issues"
12+
edit-on-github-branch="master"
13+
edit-on-github="FriendsOfTYPO3/jumpurl"
14+
typo3-core-preferred="11.5"
15+
interlink-shortcode="friendsoftypo3/jumpurl"
16+
/>
17+
<project title="Jump URL"
18+
release="main (development)"
19+
version="main (development)"
20+
copyright="since 1997 by the TYPO3 contributors"
21+
/>
22+
<inventory id="t3tsref-v9"
23+
url="https://docs.typo3.org/m/typo3/reference-typoscript/9.5/en-us/"
24+
/>
25+
</guides>

Makefile

+14
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 --fail-on-log

0 commit comments

Comments
 (0)