-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fill config.md automatically #11
Comments
I'm unclear on whether Git.jl would be more appropriate than JuliaLang/TOML.jl? also we'd need fallback stuff in case there's no project.toml available etc. |
We don't get the |
It's a good feature, if you want to work on it. You may also want to see how |
So I still think it's a good idea, but now basically it needs something that catches the stuff from the PkgPage/page at the moment of writing them in basically it'll be a bunch of s = read(joinpath(store, "config.md"), String)
s = replace(s, r"@def(\s+)authors(\s*)=\s*\".*?\"" => SubstitutionString("@def\1authors\2= \"$authors\"")) Ps: @Wikunia I added you as contributor |
I'm not sure I get the new idea so just to be sure: |
right so you can't rely on the trick At the moment I'm suggesting not copying over |
Oh I see the reason now. Thanks for clarification |
Then I would probably create three dictionaries. One TOML one Git and one default and use.
|
btw this could probably be extended to get the edit: same with .gitattributes |
I just tried out the package. Thanks for the awesome work!
One thing I think would be awesome is to fill some parts of the
config.md
automatically like:github_repo
title
authors
prepath
(whatever that actually is :D ) is that the folder name of the package?docs_url
would be the github repo stable docs (would not work for a custom domain)This could be done with https://github.com/JuliaPackaging/Git.jl which is an old package so maybe not the best thing. Or using
run
commands to call git directly. Not too sure whether that works in Windows :/To be save it's done in a try catch block such that nothing breaks.
Ah yeah some of the information can be taken from
Project.toml
If interested I would work on a PR.
The text was updated successfully, but these errors were encountered: