-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add Docusaurus #67
Add Docusaurus #67
Conversation
It looks awesome! Keep going, @ybiquitous! |
Thanks @hudochenkov I'm ready to receive reviews! Welcome feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! It's super nice! Awesome work, @ybiquitous!
Finally, we should remove the current engine Phenomic. But I don't want to do so in this PR, because removing it will make it hard for us to review this PR due to too many diffs.
After the migration from Phenomic to Docusaurus in the PR will work, I think it good to remove the old engine (further, update Nodejs and dependencies).
Good plan!
Few things I would like to see fixed if possible:
- Add
html { overflow-y: auto; }
to always have scrollbar visible and avoid header jump, when page is loading. - Remove “Preprocessors” from the header. We want to deprecate them, so it's good to not emphasize them in the main navigation.
- Make “Demo” in the header looks like other links.
- There is no hover state for header links.
- On Demo page header is much narrow and links are different (they have hover).
- Is it possible to improve changelog sidebar. Currently all links looks like “[10.1.0][]”.
<meta name="description">
and<meta property="og:description">
has weird content. On current website they are also incorrect.- Is it possible to make different title for a home page?
<title>
and<meta property="og:title">
is “stylelint · stylelint”. Can we do only one ”stylelint” instead? Or like Prettier does: “stylelint · A mighty, modern style linter”? - Neatpick: Is it possible to configure Autoprefixer (if there any)? I see very old flexbox prefixes in CSS. It would be nice to remove them, if Docusaurus allows it.
- Make footer shorter. It take too much space on Demo page.
Current progress report:
Done ✅
Done ✅
Done ✅ |
I think we need to revert this change 6261253. It's very hacky. Let's find solution for header for Demo (both width and links styles) in separate PR, when this one is merged. |
Co-Authored-By: Aleks Hudochenkov <[email protected]>
This reverts commit 6261253.
Yes I agree, it's hacky. 😅 Reverted. |
- Narrow scope of variables. - Inline variables which are used only once.
Yes, it's strange. When I research it, I find that the behavior is due to the internal code of
Currently, I can't find a solution yet. 😖 |
It seems to be a Docusaurus's bug. A description of doc pages is generated from the first line of the markdown content. See below: |
This reverts commit 0c9226a.
Done ✅ |
I think the following would be good enough for
https://browserl.ist/?q=%3E+0.5%25%2C+last+1+major+versions%2C+Firefox+ESR%2C+not+dead |
I've created issues for unsolved problems, which we could tackle after this PR is merged. @stylelint/contributors what do you think about new website? |
👍 |
Done ✅ See #67 (comment) |
NOTE: I left some notices below.
|
Is it possible for Docusaurus to keep file name case? I would like to move to Netlify as well, but migrating engine, hosting, and DNS at the same time is a little bit risky. |
Sure, Docusaurus outputs
|
I think I see the problem. Docusaurus generates /CHANGELOG But non of this will be working with Github Pages and Docusaurus :( What we can do is migrate to Netlify with current setup and use https://github.com/stylelint/stylelint.github.io as source for deployment. Then migrate this to Docusaurus completely (with removing Phenomic) and then change Netlify to run on this repository. |
It looks a good idea to me! 👍 |
Awesome progress here, thanks a whole bunch @ybiquitous and @hudochenkov for jumping in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @ybiquitous! Now let's remove Phenomic :)
Thank you for the review! |
The migration to Docusaurus has worked (see stylelint#67), so this deletes Phenomic code as the old engine. - Delete unused directories and files. - Update dependencies. - Use Node 12 (latest) in Travis CI.
* Delete Phenomic and update dependencies The migration to Docusaurus has worked (see #67), so this deletes Phenomic code as the old engine. - Delete unused directories and files. - Update dependencies. - Use Node 12 (latest) in Travis CI. * Set Node version via `.nvmrc` Travis CI and Netlify recognize a `.nvmrc` file to detect needed Node version. * Update README for new npm-run scripts * Use Node v10 LTS instead of v12 * Arrange npm scripts * Fix warning of `eslint-plugin-react` > Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration . * Set `NODE_ENV=production` to prevent PostCSS warning > Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
Fantastic work! |
@jeddy3 you're back! Happy to see you :) Even if we don't see each other actually :) |
Thanks! It's nice to be back. It's brilliant to see all this good work on the stylelint website. It's looking great! |
Demo: https://stylelint-docusaurus.netlify.com/
(this demo site is updated automatically when commits are pushed)
Closes #58
This PR aims to add Docusaurus v1 as a new doc generator engine.
If you want to try the new website on your computer, please run the following commands (Node 8 required):
Commands
Finally, we should remove the current engine Phenomic. But I don't want to do so in this PR, because removing it will make it hard for us to review this PR due to too many diffs.
After the migration from Phenomic to Docusaurus in the PR will work, I think it good to remove the old engine (further, update Nodejs and dependencies).
I hope any feedback! 😄
About the changes
.md
files for the website fromnode_modules/stylelint
directory:scripts/generate-stylelint-docs.js
npm run gendoc
command if you want to run the script.doc/
directory which Docusaurus recognizes.lib/rules/{rule-name}/README.md
->user-guide/rules/{rule-name}.md
website
directory which Docusaurus requires. The directory is a core of the website.yarn.lock
generated by thenpx docusaurus-init
command. Because I think such files may cause new confusions. Let's add them when we will need.