Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Footer from external HTTP sourceΒ #600

Open
@userbradley

Description

@userbradley

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions