haltcase / glob

Pure Nim library for matching file paths against Unix style glob patterns.
https://glob.bolingen.me
MIT License
61 stars 5 forks source link

[RFC] regarding committing docs and auto-updating documentation website #25

Closed timotheecour closed 6 years ago

timotheecour commented 6 years ago

I'm currently seeing docs/glob/regexer.html + other files

implementation

haltcase commented 6 years ago

I've never generated artifacts like this using CI but it's a good idea (or hooks, if that's better). Would like to find a good way to do this.

haltcase commented 6 years ago

~I started this but we're blocked by https://github.com/nim-lang/Nim/issues/9155.~

That issue is fixed in devel.

timotheecour commented 6 years ago

great! will try to follow up on nim-lang/Nim#9155.

timotheecour commented 6 years ago

btw, this would (obviously) be useful for all nimble projects out there so making this work would be awesome

haltcase commented 6 years ago

@timotheecour done! :tada:

Well, not done, but it works heh. There are definitely improvements to be made. Basically how it works is: untagged git commits do nothing extra on Travis and the tests are run as usual.

A tagged commit however (which should be a new version) will trigger a custom Travis deploy script found in .travis_deploy_docs. It builds the docs and overwrites the master directory on the gh-pages branch, then also creates a new directory named with the tag on the commit.

Now I want to put in an index file that catalogs these versions and I think we'll be in good shape.

timotheecour commented 6 years ago

Now I want to put in an index file that catalogs these versions and I think we'll be in good shape.

after that I think it'd be worth adding a link to that technique to nim github repo in best practices (permanent, easy to search) or at least a forum entry so others are encouraged to do the same

EDIT looks like for nim repo itself there's something along those lines since 15 days ago:

"Deploy devel build of docs to https://nim-lang.github.io/Nim" since https://github.com/nim-lang/Nim/commit/308710c1e22db345a072c56e595e23e5e9ca376a

links

haltcase commented 6 years ago

Aight, now it's pretty great. Check it out: https://citycide.github.io/glob/

timotheecour commented 6 years ago

perfect!