Skip to content

Add AsciiDoc include for remote URI

Michael Le requested to merge mle/348687-asciidoc-allow-uri into master

Related #348687 (closed)

What does this MR do and why?

This merge request allows users writing in AsciiDoc to include other files with remote URI. This allows them to insert content from other projects/resources without the need to repeat themselves.

Screenshots or screen recordings

This is how the AsciiDoc is rendered by this MR change

Current MR Change
image image

How to set up and validate locally

  • Create a wiki
  • You are going to create 3 wiki pages using the AsciiDoc format
    • set the Format to AsciiDoc
  1. PageA
  2. Nested/PageB
  3. Demo

For the Demo page it should include the following text to simulate including files from different wikis:

This page is a demo that includes AsciiDoc pages.

include::PageA.asciidoc[]

include::Nested/PageB.asciidoc[]

include::https://example.com/index.html[]

include::https://gitlab.com/mle/ramen/-/wikis/RemoteDoc.asciidoc[]

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Michael Le

Merge request reports

Loading