Skip to content

Commit

Permalink
Merge pull request #1202 from linawolf/docs/switch-rendering
Browse files Browse the repository at this point in the history
[DOCS] Switch Documentation Rendering to PHP
  • Loading branch information
derhansen authored Mar 2, 2024
2 parents 4fe6d95 + b69cba9 commit a071bc3
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 130 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test documentation

on: [ push, pull_request ]

jobs:
tests:
name: documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Test if the documentation will render without warnings
run: |
mkdir -p Documentation-GENERATED-temp \
&& docker run --rm --pull always -v $(pwd):/project \
ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --fail-on-log
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ now required to use TSConfig::

templates.derhansen/sf_event_mgt.20 = derhansen/sf_event_mgt_extend_demo:Resources/Private

Details see :doc:`changelog entry<Feature-96812-OverrideBackendTemplatesWithTSconfig>`
Details see :ref:`changelog entry <changelog:feature-96812>`
36 changes: 1 addition & 35 deletions Documentation/Includes.rst.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@
.. More information about this file:
.. https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/GeneralConventions/FileStructure.html#includes-rst-txt
.. ----------
.. text roles
.. ----------
.. role:: aspect(emphasis)
.. role:: bash(code)
.. role:: css(code)
.. role:: html(code)
.. role:: js(code)
.. role:: php(code)
.. role:: rst(code)
.. role:: sep(strong)
.. role:: sql(code)

.. role:: tsconfig(code)
:class: typoscript

.. role:: typoscript(code)
.. role:: xml(code)
:class: html

.. role:: yaml(code)

.. default-role:: code

.. ---------
.. highlight
.. ---------
.. By default, code blocks use PHP syntax highlighting
.. highlight:: php
.. You can put central messages to display on all pages here
33 changes: 13 additions & 20 deletions Documentation/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,25 +137,18 @@ TYPO3 CMS.
.. container:: card-body

Various extensions improve ext:sf_event_mgt with additional features.
.. Table of Contents
.. toctree::
:maxdepth: 5
:titlesonly:
:hidden:

Introduction/Index
ForEditors/Index
ForAdministrators/Index
ForDevelopers/Index
Faq/Index
Reference/Index
Miscellaneous/Index

.. Meta Menu
.. toctree::
:hidden:
.. Table of Contents
Sitemap
genindex
.. toctree::
:maxdepth: 5
:titlesonly:
:hidden:

Introduction/Index
ForEditors/Index
ForAdministrators/Index
ForDevelopers/Index
Faq/Index
Reference/Index
Addons/Index
2 changes: 1 addition & 1 deletion Documentation/Reference/MigrationFromSeminars/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SQL queries

We are starting with a fresh install of sf_event_mgt so we can use ids mostly 1 to 1.

.. code-block:: mysql
.. code-block:: sql
/* Organizers */
INSERT INTO tx_sfeventmgt_domain_model_organisator (uid,pid,name,email,email_signature)
Expand Down
73 changes: 0 additions & 73 deletions Documentation/Settings.cfg

This file was deleted.

18 changes: 18 additions & 0 deletions Documentation/guides.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.phpdoc.org/guides ../vendor/phpdocumentor/guides-cli/resources/schema/guides.xsd"
links-are-relative="true">
<extension class="\T3Docs\Typo3DocsTheme\DependencyInjection\Typo3DocsThemeExtension"
project-home="https://github.com/derhansen/sf_event_mgt" project-contact="mailto:[email protected]"
project-repository="https://github.com/derhansen/sf_event_mgt"
project-issues="https://github.com/derhansen/sf_event_mgt/issues"
edit-on-github-branch="master"
edit-on-github="derhansen/sf_event_mgt"
typo3-core-preferred="stable"
interlink-shortcode="derhansen/sf_event_mgt"
/>
<project title="Event management and registration"
release="7.2.0"
version="7.0"
copyright="2014 - 2023 by Torben Hansen"/>
</guides>
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: help
help: ## Displays this list of targets with descriptions
@echo "The following commands are available:\n"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: docs
docs: ## Generate projects docs (from "Documentation" directory)
mkdir -p Documentation-GENERATED-temp

docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation

.PHONY: test-docs
test-docs: ## Test the documentation rendering
mkdir -p Documentation-GENERATED-temp

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 comments on commit a071bc3

Please sign in to comment.