-
Notifications
You must be signed in to change notification settings - Fork 469
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
Use AsciiDoctor for the 3D Tiles specification #590
Comments
There are some additional details that have been added to the wetzel readme. |
First experiments for the conversion to AsciiDoc have been started in #682. On top of the state in this PR, I locally created a state that is even more experimental, and will merge that back into the visible one at some point. There are specific points that are related to #631 and #632 (comment) :
The general approach for building the specification still has to be decided upon. Some preliminary notes about the process of converting from Markdown to AsciiDoc, as well as basic instructions for the PDF/HTML generation, are summarized at https://github.com/javagl/3d-tiles/blob/ac729d4f67e68852b47fbf8ce900fcd24d2bd3bd/BUILDING.md , but these will become proper "build instructions" later. But some things to consider:
I do not yet have a clear idea whether we want to be "inspired" by that (starting with the shallow question of "Which Docker container should we use?") The inclusion of the "Property Reference" that can be generated with wetzel raises some questions. While wetzel has been updated to generate AsciiDoc, the overall process has to be sorted out. First, we need to check whether wetzel can generate the reference for the current 3D Tiles schema. Then, we have to integrate that into the full specification document. (That's where Docker+Makefiles might have to come into play...) The conversion from Markdown to AsciiDoc involves a ton of manual work. While the "bulk conversion" can be done with kramdown, the resulting |
One broad and generic question is how we want to handle links to repositories. Right now, the spec usually contains sections like
where the link points directly into the repo. Similarly, there are some links like
These links are (very) convenient for the reader on GitHub. But that does not play well with the idea of having a single, self-contained document. The links to the schema files could just be removed, but that would be a pity. It could be better to replace them with a link to the "Property Reference", but the process of generating and integrating that is still to be investigated. The handling of other repo-links might be decided on a case-by-case basis, and I can do a first pass here (specific cases that are unclear could be tracked in #682 ) |
On top of the question above (how to link to the schema from the spec), there are also links from the schema to the spec - e.g. in I did a few experiments with wetzel,
A more high-level question: Should we try to move all property references from their individual pages into one large one that is added as an appendix? And a high-level question, unrelated to the above: I wondered in how far 'Styling' us actually part of the specification. It was part of 1.0, so certainly is a part, but in many ways unrelated to the format itself. (I just moved it into an appendix locally, but that might not be the right thing to do here...) |
Hm we might need to dig into wetzel a bit for these.
I believe it's valid according to the JSON Schema 2019-09 Release Notes and seems like it should be quick enough to fix in wetzel, at least compared to the other things here.
This seems hard to fix from the 3D Tiles side. How much effort is it to update wetzel?
Also curious what the level of effort is for updating wetzel.
That makes sense. It keeps the rest of the specification tidy and those sections can link to the other page / appendix.
It would be its own section near the end of the document, but not an appendix, similar to https://github.com/CesiumGS/3d-tiles/blob/main/specification/specification.pdf |
Regardless of the Property Reference, there will the difficulties for internal links. For example, we have
and the first one is supposed to link to the second, but this is apparently not possible. |
The workaround that I'm currently using in #682 for cross-linking between documents in sibling directories is described at https://github.com/javagl/3d-tiles/blob/67a5b447f1c25c13f54fc17b3fcb511ad323c55a/BUILDING.md#cross-linking-between-files . This might well break some "Best Practices", but if anybody comes up with a solution that works for both the GitHub preview and the generated HTML/PDF, I'd apply that solution accordingly. |
The specification of 3D Tiles 1.1 is now written in AsciiDoc. (That's the format name. AsciiDoctor is apparently only the tool that is most commonly used for handling AsciiDoc). |
To follow the lead of
glTF
, it might be good to upgrade our spec from Markdown to AsciiDoctor for nicer HTML and PDF output. It sounds like https://github.com/CesiumGS/wetzel has been updated within the past year. it would be good to see how well it fits 3D Tiles.Some notes from @emackey about the latest details of wetzel:
The text was updated successfully, but these errors were encountered: