Skip to content
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

Antora assembler simplification #910

Draft
wants to merge 20 commits into
base: release/3.2
Choose a base branch
from

Conversation

osfameron
Copy link
Collaborator

WIP with antora-assembler

Android database page looks pretty good to me, but haven't done full test!

Run
    perl -ni -e 'print unless /^(\s*$|\/\/)/' \
         modules/ROOT/pages/_partials/_show_glossary_links.adoc
         ...

on the main abstracted partials. This is so that when antora-assembler inlines them,
they won't have extra newlines and // comment lines that confuse the output.

Additionally, manually add a comment to the block_tabbed_code partials, so that
the source of includes can be tracked.
run:

  ./simplify/simplify.sh

This assumes that docs-site and docs-sync-gateway are siblings in the file tree.

This sample only updates the android/database.adoc page for now
(it builds everything, and all the rest should work in exactly the same way,
I just haven't wired that part together yet.)
* Extract `process` call to run on all modules, and all asciidoc files

* {tabs} declarations get mangled
  (possibly same issue as https://gitlab.com/antora/antora-assembler/-/issues/17 ?)
  We now de-munge these
these auto-generated anchors break tabs
osfameron added a commit that referenced this pull request Oct 10, 2024
Fixing the code samples will require collaboration with @borrrden and co,
but in the meantime, we can copy the previous snippets from version 3.0.

This requires copying the "simplified" version from #910
and making some changes:

* fix image location to :ROOT:
* remove additional == 2 levels of header

as well as copy/pasting code from the previous output into the source snippets as appropriate.
osfameron added a commit that referenced this pull request Oct 10, 2024
Fixing the code samples will require collaboration with @borrrden and co,
but in the meantime, we can copy the previous snippets from version 3.0.

This requires copying the "simplified" version from #910
and making some changes:

* fix image location to :ROOT:
* remove additional == 2 levels of header

as well as copy/pasting code from the previous output into the source snippets as appropriate.
Copy link
Contributor

@RayOffiah RayOffiah left a comment

Choose a reason for hiding this comment

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

Haven't been through all the files, to be honest; but it looks like you've just removed all the discrete tags from the anchors.

So it should be good!

Ah! My mistake; got here a little too late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants