Skip to content

[TASK] Test the code examples of the manual - #232

Open
linawolf wants to merge 2 commits into
task/style-language-menufrom
task/test-snippets
Open

linawolf wants to merge 2 commits into
task/style-language-menufrom
task/test-snippets

Conversation

@linawolf

Copy link
Copy Markdown
Member

The site configurations, the global setting in additional.php, and the
TypoScript of the labels were code blocks that nothing checked. They
are now files in Documentation/CodeSnippets, which the pages include
with the lines of each example visible. Functional tests render pages
with them, and check that each one works as the manual says: the
fallback, strict, and free modes, the label from the labels path, and
the hiding of untranslated pages.

Releases: main, 14.3
Assisted-by: Claude Opus 5.5 noreply@anthropic.com
Signed-off-by: Lina Wolf

The site configurations, the global setting in additional.php, and the
TypoScript of the labels were code blocks that nothing checked. They
are now files in Documentation/CodeSnippets, which the pages include
with the lines of each example visible. Functional tests render pages
with them, and check that each one works as the manual says: the
fallback, strict, and free modes, the label from the labels path, and
the hiding of untranslated pages.

Releases: main, 14.3
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lina Wolf
paths.10 = EXT:my_sitepackage/Resources/Private/Templates/

dataProcessing {
10 = menu

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing mainMenu is OK, as mainMenu is not referenced in any rst files of this doc

,uid,pid,slug,title,sys_language_uid,l10n_parent,is_siteroot
,1,0,/,Home,0,0,1
,2,0,/,Inicio,1,1,1
,3,0,/,الرئيسية,2,1,1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_siteroot is bool and cannot contain string

The page said that a translation takes its start and end time from the
original. It takes only its type and its column, and the frontend shows
it only together with its original. The page also said that the
language "All" needs overlays, but it works in free mode, too. The
revision fixes both, names the field of the original for tt_content,
says that strict is the default fallback type, and replaces the :ref:
links with permalinks.

Releases: main, 14.3
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lina Wolf

Signed-off-by: Lina Wolf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants