]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: deploy api
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Aug 2021 16:34:00 +0000 (18:34 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 26 Aug 2021 16:34:00 +0000 (18:34 +0200)
netlify.toml
packages/docs/.vitepress/config.js
typedoc.js

index 64e4ae0a770fe941f9b3d40d4b4b907bb33c3ee7..b24cbdcea93e8dfc0785bc0fb7f35afefc68ee62 100644 (file)
@@ -1,4 +1,4 @@
 [build]
-command = "yarn run docs:build"
+command = "yarn run docs:build && yarn run docs:api"
 ignore = "./scripts/docs-check.sh"
 publish = "packages/docs/.vitepress/dist"
index 5e45eb4cf693ff1e95b941988981eaa596b285b7..07a54bb871207fc8db652f4af3a15dfa567bcce4 100644 (file)
@@ -143,6 +143,7 @@ module.exports = {
 
     nav: [
       { text: 'Guide', link: '/introduction.html' },
+      { text: 'API', link: 'https://pinia.esm.dev/api/' },
       // { text: 'Config', link: '/config/' },
       // { text: 'Plugins', link: '/plugins/' },
       {
index d4f9f8e6ee3fee987ce4aaa760b7bce6078684b7..9927bd5a32fd185afd5df74d9c4c1944310e908c 100644 (file)
@@ -4,7 +4,7 @@
 const config = {
   name: 'Pinia',
   excludeInternal: true,
-  out: 'docs-api',
+  out: 'packages/docs/.vitepress/dist/api',
   entryPoints: [
     'packages/pinia/src/index.ts',
     'packages/testing/src/index.ts',