-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Create documentation site with vuepress (#1454) #2051
Conversation
It also has a |
Thanks for making the PR @nklayman. It may take me a little while to get round to reviewing this and considering how we'd publish to https://zeit.co/now. |
This looks rather nice @nklayman! Does the theme need to be committed? It looks to be the default theme so won't it come with the Do we need to nest the Markdown files or can they stay in Could you remind me how we need to lay out the versions? I'm thinking that if we go with ZEIT's Now, we could have a build process that uses the GitHub API to select the Markdown files for each release, puts them in the right location and then builds a static site that includes the documentation of all versions. Does that sound about right to you? |
@novemberborn The reason I had to eject the default theme was to add the version selector dropdown. vuejs/vuepress#100 is a similar issue. The docs are nested so they fall under different sections for navigation. There is the homepage, the guide section, and the recipes section. The markdown changes were not intentional. I think prettier changed some things, I have it set to auto-format my code. The root As for versioning, my original plan was to keep an archive of all the docs versions in |
Hi @nklayman, sorry I haven't gotten round to picking this up again. |
Hey @nklayman, I'm so sorry for ignoring this for so very long. I think the time commitment required on my part to review and then ship this turned out to be too much. That's happened with some other AVA PRs as well. I'm trying to encourage a more iterative approach that should result in smaller changes that are easier to ship. It's probably for the best to close this PR now. Sorry to disappoint. |
Adds a documentation/info site, powered by vuepress. Pages are written in markdown, and then converted to static html. Start dev server with
npm run docs:dev
. Build site withnpm run docs:build
(outputs todocs/.vuepress/dist
). Versioning is handled by requesting thereleases.json
(hosted by the docs site, located indocs/.vuepress/public
). It creates aversions
dropdown with links tourl/v${version}
. Each version of docs would need to be published to the proper path. Hosting may need extra configuration as well, and the base configuration likely needs to be set.