Add better support for other static site generators
See original GitHub issueCurrently, Staticman will look for a _config.yml
configuration file on the root of the repository, which is specific to Jekyll.
I’d like us to support other engines, so I see two options:
- Allow requests to specify the path to the configuration file within the
options
object (ugly, potential security issues?) - Move the
staticman
config block to its own file
Option 2 seems more appropriate, but what should the name for the new config file be? Jekyll doesn’t include files prefixed with an underscore in the generated site — is this a convention used by other engines as well? If not, is there a filename we could use that would cause this effect in all (or, at least, in the majority) of engines?
@biilmann would you be able to advise on this?
(As a side note, this will be a breaking change, so I’ll have to release a v2
endpoint for entries)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Top 5 Static Site Generators in 2022 (and When To Use Them)
1. Jekyll ... The Jekyll homepage with the headline "Transform your plain text into static websites and blogs The Jekyll homepage. Jekyll is...
Read more >How to choose the right static site generator - GitLab
Here's an in-depth look at 6 static site generators that deploy to GitLab ... it will be to pick the feature set that...
Read more >The Top 6 Static Site Generators in 2022 - Snipcart
Static site generators are great tools to build fast static websites. But with so many options, choosing one might be tricky.
Read more >Static Site Generators - Top Open Source SSGs - Jamstack
Check out this showcase of some of the best, open source static site generators. This is community-drive so be sure to submit your...
Read more >The 14 Best Static Site Generators You May Not Have Heard ...
Static Site Generators are easy to use, simple, and provide a fast and ... To help you choose the best SSG, we've prepared...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, wow. That’s ugly indeed.
I’m thinking the new config file could simply be
staticman.yml
in the root of the repository. For simplicity reasons, we need to support a single format for the config file, and YAML seems to be the most human-friendly choice.Closing in favour of #32. Will release with v2 of the API shortly.