-
-
Notifications
You must be signed in to change notification settings - Fork 770
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 documentation site #991
Comments
This seems nice, but the README link is wrong. Should be https://github.com/sinonjs/sinon/blob/master/docs/README.md |
And the TODO mentions Metalsmith, not Jekyll. So to test out how the docs will look one will need to have Jekyll installed, and then run some kind of build script. Seems fine. |
Fixed, thanks |
I've pushed a new commit that updates the TODO.md. I'll try to get a branch together for this work |
@mroderick I was unable to update the site after shipping 1.17.4 last night, getting a |
Thinking that working is better than perfect, I want to start contributing on this task. I was thinking of creating a A few concerns: Should all the build scripts go into this project, or should we keep them separate (in |
I think maybe the actual build scripts could well live in the |
@fatso83 sounds like a good plan to me; I'm happy to contribute to the docs once we have a pipeline setup. Also, IMHO there is a great deal of value in keeping the documentation source (ie: md files) in the same repo as the project's source code. |
OK, so I have been reading up on how to achieve Morgans intended goals, with the main parts being
The last part seemed a bit hard to fulfill, given that Morgan mentioned using Jekyll (which does have a build step), but by utilizing GitHub pages it is not a step we need to execute ourselves :-) I know that Morgan mentioned avoiding Sass, but since GitHub pages supports it I don't see why we need to avoid it completely ... Other than that I fully agree. Anyway, I am thinking a release build of Sinon, including building new docs, will follow these steps (assuming
The magic here is of course step 9 and 10 which will basically just push a new empty commit to the GitHub pages repo and thus trigger a rebuild of the site. This means a new release of sinon with new docs could be down to nothing more than |
@fatso83 I'm not too familiar with Jekyll, but don't we need to copy the markdown files from |
There were a few motivations for this:
|
@jonnyreeves No, as I previously wrote that we could include the main @mroderick : as SASS is usually employed to ease maintenance, I am not sure I agree, as there would be less code to write and no additional build steps, but I am totally following you on the second point for this project to lower the bar. Some people could easily start doing Fourier transforms in the Sass code Ana Tudor style, and we have no need for that kind of complexity 😄 GH Pages does not currently support http pipelining, so using a |
@fatso83 I never imagined using github pages, that was your idea :) |
I came across https://read-the-docs.readthedocs.io/en/latest/index.html recently (they provide documentation hosting by automatically building it from a git repo from what I understand) - would this be something useful for Sinon docs? |
@spinningarrow Good suggestion, but I think we want to be able to control the looks of the site. After talking to Morgan it seems we will continue hosting a web server ourselves, so readthedocs and GitHub Pages is out. |
This is a legacy issue that is just around for the sake of tracking progress on Sinon 2. See
#1189#1220 for actual documentation subtasks that are yet to be done.See #966 for an overview of all the remaining work on Sinon 2.
I think we should use http://jekyllrb.com for generating the new site. I realise that it's not JavaScript, and I am fine with that. I don't need everything to be JavaScript. Most contributors are unlikely to need to run it, and for those that do, it's fairly easy to get it running these days.
Jekyll uses GitHub Flavoured Markdown, which should make it instantly familiar to everyone that contribute to open source these days.
Versioning
The strategy for versioning the documentation is described in
docs/README.md
.Assumptions and requirements
Requirements / To Do
docs
, for both1.7.x
and2.0
docs/releases
, seedocs/README.md
Please post suggestions and comments!
The text was updated successfully, but these errors were encountered: