-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to documentation tables based on xcore #438
Conversation
Ok, we're finally in a state now to easily deploy, render and compare the state of the current documentation rendering and the state of the new xcore rendering. Also there is a new rudimentary starting page https://vdvde.github.io/OJP/ which shows the available documentation renderings based on branches. The new documentation rendering found some issues, most in SIRI but one also is in OJP:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are multiple issues with the current state of the new documentation rendering which have to be solved before merging this and thus making it our new documentation:
<!DOCTYPE html>
declaration is missing- Javascript code is escaped:
for (var i = 0; i &lt; headers.length; i++) {
which leads to a Javascript error on load - Every generated page has a comma
,
as first char in the<body>
- All sections of 1. OJP.xsd - OJP messages as extension of SIRI are twice in the table of contents and in the tables section as well
- The headers of the chapters per file are only displayed correctly in the table of contents, when you click on them they only contain the file name, e.g. "OJP_Requests.xsd" instead of the full title "OJP_Requests.xsd - OJP service requests and responses" as before
- The table of contents lists 1.1 to 1.10 for the base OJP.xsd, but there are 1.11 to 1.24 as well containing additional sections for OJP and SIRI definitions which should not be displayed like this, e.g. "1.11. The complex type element[ojp:OJP]#complexType (typedef-105.1)" or "1.13. The complex type element[siri:ServiceRequest]#complexType (typedef-102.2)"
This is only a first check, there are probably more issues to be spotted which can be done by others as well now.
<!-- Report type specific rules --> | ||
<reportTypes/> | ||
<!-- | ||
<domains> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this commented section really relevant or should it be removed?
docs/generate_tables/xco-html.xqm
Outdated
[contains($href, 'enum-dict')] | ||
return | ||
<li>{ | ||
<span class="monospace">{$prefix}</span>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this prefix really necessary in our case? I'd opt to remove it and restore the standard bullets to the list
@sgrossberndt - Very nice that it now (almost) works! I've spotted a few more problems, see below. As for the missing sections 1.11 to 1.24 in the table of contents - I think this is by design and not inappropriate, since it concerns nested, unnamed types. There are similarly missing sections 12.32 ff. They all concern SIRI groups, and the tables (i.e., those not figuring in the table of contents) are replicated in both the OJP and the SIRI file. I don't know whether the replication in the OJP file somehow makes sense, e.g., for the links to work? So my question would rather be: could/should they be removed from the OJP file? But they don't do much harm, in my view. Further small problems:
Are we (aka @sgrossberndt) able to do the suggested improvements on our own? |
yes 🎉
I'd like to have someone explain to me why these unnamed complex types are part of ojp.html. I don't see a reason for it. If they were only part of siri.html, I wouldn't mind.
I agree.
I agree.
I only did a first version which still contained links to release/1.0 which did not have a rendered documentation back then. I excluded those links now in 246645e. Once 2.0 has been released it will be visible as
I am not able to do those suggested improvements. |
Hans-Jürgen will have a look at it until next week. |
…cating indentation.
Feature/documentation tables xcore - see PR#438
3937431
to
1769af1
Compare
The CDATA section in the Javascript tag leads to `Uncaught SyntaxError: expected expression, got '<'` if not wrapped in a Javascript comment
* Move CSS definitions to the CSS file * Move Javascript code to a file * Include at end of body instead of head, but only in the report where it is needed
Please review this pull request by comparing the state of the current documentation and the state of the new xcore documentation rendered using this pull request. |
@trurlurl Will you do the first comparison? |
…s. Also modified the display names of simple types, removing the prefix.
Feature/documentation tables xcore
For me, everything looks fine now! |
@skinkie The issue of a line break here is the only reason why it has not been merged yet: |
@sgrossberndt I agree, this is a good idea how to "nudge" column widths and to improve readability and layout. |
Looks good to me. Please review and re-vote |
No description provided.