-
Notifications
You must be signed in to change notification settings - Fork 27
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
Use Vuepress #651
Use Vuepress #651
Conversation
Once #653 is merged I should be able to edit the last commit and make the build pass 👍 |
Codecov Report
@@ Coverage Diff @@
## master #651 +/- ##
=======================================
Coverage 90.98% 90.98%
=======================================
Files 84 84
Lines 1675 1675
Branches 105 105
=======================================
Hits 1524 1524
Misses 121 121
Partials 30 30
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Building OK now. But Vuepress still not quite working. First issue was with istanbul-instrument-loader, which can be replaced. I removed it temporarily to test it. Then I had a look at |
The |
The current issue now is in |
Found one workaround for the global issue, by defining it globally and importing with |
f589182
to
fb4c411
Compare
Building passing, Vuepress displaying components correctly. Whew 😪 The "show code" part of the |
Just need to add more components to the doc, show how it will look like in a GH pages, then it should be ready for review. Probably will finish next week or later, will move on to the GScan deltas now 👍 |
I have removed my branch, and closed the pull request, but moved the branch to this repo: https://github.com/cylc/cylc-ui/tree/vuepress The reason is that it would take a bit longer to get everything working. And the everything is actually a lot of duplicated code. The idea of Vuepress is really great. It compiles and runs your components in a documentation, similar to Sphinx in Python. The main issue that I found, is that Vuepress does not load the project's configurations, especially not the webpack configuration of Cylc UI. Because of that, there are many configuration steps in the This might become a problem for future developers since it is not necessarily an exact copy of the existing configuration. See the last commit, for example. I loaded Vuex with However, that was not enough, since the Definitely a great tool if other devs are willing to put up time and effort to maintain Vuepress in-sync and working. Main benefit is having the docs reflect exactly what we have in the source code (or fail if it is out of sync). |
These changes close #640
Vuepress was working fine, until I got stuck with Webpack issues. Going down the rabbit hole, looks like updating to Yarn v2 could solve my current issue. It would also help for Cypress I think, so will give it a go tomorrow.
I tried to update it now following their migration guide, but the build failed. So there are probably things that need to be fixed in our build first (e.g. those many warnings I've been sweeping under the rag until now 😄 )
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.