question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add better support for other static site generators

See original GitHub issue

Currently, 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:

  1. Allow requests to specify the path to the configuration file within the options object (ugly, potential security issues?)
  2. 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 v2endpoint for entries)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
eduardoboucascommented, Aug 19, 2016

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.

0reactions
eduardoboucascommented, Oct 22, 2016

Closing in favour of #32. Will release with v2 of the API shortly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found