-
Notifications
You must be signed in to change notification settings - Fork 117
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
New contributing Guidelines add friction (documentation) #166
Comments
This is unfortunate. I tried to provide enough guidance while empowering developers to put their own ideas together in the documentation. Perhaps we also need to improve the instructions in
The info file will be different each time as it is a generated file. I don't generally pay much attention to it in terms of how the code looks inside the file, however, I do load it in Emacs to make sure it still looks good and is reasonably consistent when viewed in Emacs. I guess I hadn't noticed there were differences in formatting. I would indeed like to see the documentation (read: the info file) look as consistent as possible. I like your ideas on configuring a "make docs" concept to consistently generate the info file. I'm looking forward to an implementation of your thoughts. |
I actually use a simple elisp script with a Makefile and the |
No one is working on this as far as I know. I generate the info file and load it manually to check it, then either edit the org file and try again, or push the commit. So, go for it if ya want 🤓 |
I don't think it necessarily fixes all issues described, notably if the developer configuration somehow messes with org-mode files (e.g. formatting arbitrary parts automatically), that is hard to make align for everyone. From my testing with the script, exporting in a clean Emacs session already removes a lot of "false diffs" in the generated info file. |
Ye... It's a bit tough without a linter and formatter (Go anyone?) to ensure some level of consistency within the file and ignore configuration from a user. The
That would be cool, I wonder if maybe that just sits in the CONTRIBUTING.org file as a code snippet that someone can just |
ye, I was thinking of having the export and interactive functions defined in a file (e.g. (load "/path/to/crafted-emacs/docs/crafted-docs.el")
;; if using crafted-emacs to develop crafted-emacs, could also be
(load (expand-file-name "docs/crafted-docs.el" crafted-emacs-home))
;; if it sits in the CONTRIBUTING.org, maybe just
(load (expand-file-name "crafted-docs.el")) That would expose the interactive functions which themselves launch another emacs instance. As for the script running, my current plan is:
The Makefile approach has the advantage of not re-building the file if the org files haven't changed (and people who use it probably have a keybinding for The interactive function has no external dependencies (just Emacs in PATH). The only requirement for both currently is Emacs in PATH which I think is reasonable (dependencies would be documented in |
After some more testing, I can confirm Emacs on Windows should work if Emacs is on PATH (and can build the documentation manually). I'll put together some docs for it over the next few days and make a PR. |
I guess so. |
Ok, we can keep it open if that makes sense. My thought was we seem to have several related issues and when we get to the point of closing them it's a lot of loose ends to track down. |
Hi,
While working on #158 then #165 I noticed has been some developer friction added while contributing, mainly: contributing documentation is not straightforward.
One example is d295e4b, I added a paragraph to the documentation (see 13790a9) but the resulting
.info
file is much different. Probably because of some variable setup differently somewhere.There should be a way to:
make docs
) so you can see if your changes had side effects (backlinks, etc)make docs
make docs
and see that the result matches what is being committed, otherwise failI say
make docs
because everybody understands what it means, not that I am endorsing Makefile in anyway :)Maybe a
docs/_bootstrap.org
file could be introduced that has all the necessary setup and is included from the other documents. It may also have a couple babel blocks with a very basicbuild-all-docs
function, etc. That would ensure that a) all variables are consistent regardless of local environment; b) it is straightforward to build all docs. Not sure if that would work though :|The text was updated successfully, but these errors were encountered: