-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Docs improvements #4367
Docs improvements #4367
Conversation
…index.html, so we don’t need the intermediate generated .js files committed in the repo; also, even while .gitignored they should be under `docs`, with the rest of the generated files, not under `documentation`, where the source files are.
… so that index.html isn’t generated before the JavaScript is
P.S. Should we remove the |
…ght.js catches up; update the class used to match highlight.js’ `keyword`
I like all of the improvements in this PR, and would vote for removing the examples folder (including underscore.coffee). |
…nnotated underscore.coffee
@lydell Okay, I’ve removed the examples, and the link to the annotated underscore.coffee. Perhaps we should create a new repo in the |
@jashkenas I hope you don’t mind, but I’m going to merge this in so that #4368 and #4369 can be reviewed more easily. If there’s anything in this PR you disagree with let’s discuss and I’m happy to revert/revise. I’m also happy to create a new repo under As soon as those two PRs are approved, and as soon as the docs for tagged template literals are written and approved, we can release 1.12.0. I’ve submitted some merge requests to highlight.js to fix highlighting for modules, |
Yeah, removing the examples sounds just fine if you like. |
@jashkenas Do you want to create a new repo for |
Nah — we can just delete it. |
Miscellaneous improvements to the v1 docs:
The generated JavaScript for the examples in the docs ends up within
index.html
, so we don’t need the intermediate generated .js files committed in the repo; also, even while .gitignored they should be underdocs
, with the rest of the generated files, not underdocumentation
, where the source files are. Ignoring the generated example files will help avoid merge conflicts between the v1 and v2 docs.I found a bug as part of working on that: the
exec
call that was generating those intermediate JavaScript files was happening asynchronously, so it would really take two rounds ofcake doc:site
to get updated examples into the generatedindex.html
. I changedexec
to be synchronous.The existential operator section really should get its own entry in the table of contents. Closes #4361.
In “Try CoffeeScript,” if you press the tab key it should type a tab character. Currently it just changes the focus to an HTML element I can’t find, which is clearly “broken” behavior. There was a PR for this, #3342, that I used code from to implement this; plus a touch of CSS to make it pretty. #3342 was closed because people had elaborate plans for implementing CodeMirror, which never happened; until it does, I think the tab key should just work.
I also updated the output to reflect the newer version of highlight.js. My pull request highlightjs/highlight.js#1357 was accepted, so as soon as that project issues a new release it will support CoffeeScript’s newer keywords.