Hi Zoran (and all)

In my previous mail I wrote:

>>The ideal would perhaps be to include the CONTRIBUTING.md automatically in the website when it's built, but I haven't delved into the generator tools enough to know if that's doable. Also there would be some differences with links, since the ones in the repository version link with absolute URLs to the website.

So I delved into it and found a working solution:

In the MD file for the generated website (content/community/contributing.md), use a "shortcode" with the URL of the github CONTRIBUTING.md:

{{< includefile file="https://api.github.com/repos/apache/camel/contents/CONTRIBUTING.md"; >}}

and define the shortcode includefile.html like this:

{{ $response := getJSON (.Get "file") }}
{{ $response.content | base64Decode | replaceRE "https://camel.apache.org/manual"; "/manual" | markdownify }}

Does this seem like a workable plan?

Karen


Reply via email to