mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Revise notes for custom Asciidoctor extensions
This commit is contained in:
parent
915825bdf9
commit
728075a37d
@ -12,10 +12,17 @@ The following is the basic form of using this include processor.
|
||||
|
||||
[source, asciidoc]
|
||||
----
|
||||
include::github:$OWNER/$REPO[]
|
||||
\include::github:$OWNER/$REPO[]
|
||||
----
|
||||
|
||||
|
||||
== Extra notes
|
||||
|
||||
The include processor will use GitHub API.
|
||||
It can create authorized requests by setting a token in `GITHUB_API_BEARER_TOKEN` environment variable.
|
||||
For instructions on how to get a token, you can refer to link:https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?apiVersion=2022-11-28#authenticating[respective documentation].
|
||||
|
||||
|
||||
== Attributes
|
||||
|
||||
- `path` for the path of the file to be included.
|
||||
|
@ -34,6 +34,7 @@ This include processor also respects the safe mode setting.
|
||||
This means in order to permit including by SWHID, you have to permit link:https://docs.asciidoctor.org/asciidoc/latest/directives/include-uri/[includes by URIs].
|
||||
|
||||
Lastly, this include processor uses the Software Heritage API which includes a limitation.
|
||||
You could create authorized requests by setting `SWH_API_BEARER_TOKEN` environment variable with a token.
|
||||
|
||||
|
||||
== Example usage
|
||||
|
Loading…
Reference in New Issue
Block a user