Skip to content

Footer from external HTTP source #600

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

Open
userbradley opened this issue Mar 15, 2022 · 1 comment
Open

Footer from external HTTP source #600

userbradley opened this issue Mar 15, 2022 · 1 comment

Comments

@userbradley
Copy link

Howdy!

Firstly awesome product! This kicks 🍑 !!

My request, or more so a question, is is there anyway I can use include, as well as heafer-from and footer-from to pull from a http source, like github raw?

I would imagine it to look something like:

header-from: "https://gist.githubusercontent.com/userbradley/0e21a74f8cfa5b352663325eeb1b458f/raw/f5f83ad111c04e1fe153e77fd66628d998ba0bc6/header.md"
footer-from: "docs/footer.md"
formatter: "md doc"

content: |-
  {{ .Header }}
 
  ---
  # legal stuff;
  {{ include "github.com/userbradley/terraform-docs/legal.md" }}

Not sure if this is supported, but it would be cool as I'm going to be creating a lot of terraform modules and would like to be able to just have one header and footer, as well as legal schpiel, hosted on git/ or a web server.

Thoughts? Objections?

@jheison-rodriguez
Copy link

We're looking for something like this to maintain central sources

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

No branches or pull requests

2 participants