[
https://issues.apache.org/jira/browse/SOLR-11552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-11552:
----------------------------
Attachment: SOLR-11552.patch
Attached patch adds these checks. note that as things stand on master this
patch causes the refguide build to fail because we currently have an orphan
page (see comments in SOLR-11411)...
{noformat}
build-nav-data-files:
[java] Building up tree of all known pages
[java] ERROR: Orphan page:
/home/hossman/lucene/dev/solr/build/solr-ref-guide/content/v2-api.adoc
[java] Exception in thread "main" java.lang.RuntimeException: Found 1
orphan pages (which are not in the 'page-children' attribute of any other pages)
[java] at BuildNavAndPDFBody.main(BuildNavAndPDFBody.java:82)
{noformat}
> ref-guide tools should fail build if any page exists with #parents != 1
> -----------------------------------------------------------------------
>
> Key: SOLR-11552
> URL: https://issues.apache.org/jira/browse/SOLR-11552
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: documentation
> Reporter: Hoss Man
> Assignee: Hoss Man
> Attachments: SOLR-11552.patch
>
>
> {{BuildNavAndPDFBody.java}} already has to build up a completle tree of all
> pages in order to generate the sidebar navigation and pdf-main-body. I'd
> always ment to add the code to also validate that no page winds up in the doc
> twice (because they are declared in the {{page-children}} of multiple
> "parent" files) or gets left out (because someone forgot to include them in
> the {{page-children}} of a "parent" file)
> ...but never got around to it until today.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]