Skip to content

Commit

Permalink
generate docs with ember-cli-yuidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoow committed Mar 18, 2020
1 parent 2085be2 commit a542801
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 48 deletions.
22 changes: 0 additions & 22 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/* eslint-disable no-var, object-shorthand */

var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
var Yuidoc = require('broccoli-yuidoc');
var version = require('git-repo-version')();

var sourceTrees = [];

Expand All @@ -28,25 +26,5 @@ module.exports = function(defaults) {
}
});

var yuidocTree = new Yuidoc(['addon', 'app'], {
destDir: 'docs',
yuidoc: {
project: {
name: 'The Ember Simple Auth API',
version: version
},
linkNatives: false,
quiet: true,
parseOnly: false,
lint: false,
themedir: 'docs/theme',
helpers: ['docs/theme/helpers/helpers.js']
}
});

if (app.env === 'production') {
sourceTrees.push(yuidocTree);
}

return app.toTree(sourceTrees);
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"body-parser": "^1.17.2",
"bootstrap": "^4.3.1",
"broccoli-asset-rev": "^3.0.0",
"broccoli-yuidoc": "^3.0.0",
"chai": "^4.1.0",
"cors": "^2.8.4",
"ember-ajax": "^5.0.0",
Expand All @@ -63,6 +62,7 @@
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-uglify": "^2.0.0",
"ember-cli-yuidoc": "^0.9.1",
"ember-data": "~3.17.0",
"ember-debug-handlers-polyfill": "^1.1.0",
"ember-disable-prototype-extensions": "^1.1.2",
Expand Down
96 changes: 73 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3035,6 +3035,20 @@ broccoli-caching-writer@^3.0.3:
rsvp "^3.0.17"
walk-sync "^0.3.0"

broccoli-caching-writer@~2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/broccoli-caching-writer/-/broccoli-caching-writer-2.0.4.tgz#d995d7d1977292e498f78df05887230fcb4a5e2c"
integrity sha1-2ZXX0ZdykuSY943wWIcjD8tKXiw=
dependencies:
broccoli-kitchen-sink-helpers "^0.2.5"
broccoli-plugin "1.1.0"
debug "^2.1.1"
lodash-node "^3.2.0"
rimraf "^2.2.8"
rsvp "^3.0.17"
symlink-or-copy "^1.0.0"
walk-sync "^0.2.0"

broccoli-clean-css@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/broccoli-clean-css/-/broccoli-clean-css-1.1.0.tgz#9db143d9af7e0ae79c26e3ac5a9bb2d720ea19fa"
Expand Down Expand Up @@ -3514,17 +3528,6 @@ broccoli-writer@~0.1.1:
quick-temp "^0.1.0"
rsvp "^3.0.6"

broccoli-yuidoc@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/broccoli-yuidoc/-/broccoli-yuidoc-3.0.0.tgz#e436588ddfb6ae81ce82d87e894333d0fdd10487"
integrity sha1-5DZYjd+2roHOgth+iUMz0P3RBIc=
dependencies:
broccoli-caching-writer "^3.0.3"
broccoli-merge-trees "^2.0.0"
merge "~1.2.0"
rsvp "^3.5.0"
yuidocjs "^0.10.2"

broccoli@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/broccoli/-/broccoli-3.3.3.tgz#f4034b2495b709e99dd7e7d8834bf4a01bb4d0d7"
Expand Down Expand Up @@ -5562,6 +5565,17 @@ ember-cli-version-checker@^4.1.0:
semver "^6.3.0"
silent-error "^1.1.1"

ember-cli-yuidoc@^0.9.1:
version "0.9.1"
resolved "https://registry.yarnpkg.com/ember-cli-yuidoc/-/ember-cli-yuidoc-0.9.1.tgz#bc2171eb160b02ad5f4078e83e3648b95628ced9"
integrity sha512-4pb3OKXhHCeUux6a7SDKziLDWdDciJwzmUld3Fumt60RLcH/nIk5lPdI0o+UXJ9NfP+WcSvvpWWroFmWqWAWWA==
dependencies:
broccoli-caching-writer "~2.0.4"
broccoli-merge-trees "^1.1.1"
git-repo-version "0.2.0"
rsvp "3.0.14"
yuidocjs "^0.10.0"

ember-cli@~3.17.0:
version "3.17.0"
resolved "https://registry.yarnpkg.com/ember-cli/-/ember-cli-3.17.0.tgz#d846027c01f1835c7903b6bff073c2a80885202e"
Expand Down Expand Up @@ -7407,7 +7421,7 @@ git-read-pkt-line@0.0.8:
bops "0.0.3"
through "~2.2.7"

git-repo-info@^1.4.1:
git-repo-info@^1.0.4, git-repo-info@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/git-repo-info/-/git-repo-info-1.4.1.tgz#2a072823254aaf62fcf0766007d7b6651bd41943"
integrity sha1-KgcoIyVKr2L88HZgB9e2ZRvUGUM=
Expand All @@ -7417,6 +7431,13 @@ git-repo-info@^2.1.1:
resolved "https://registry.yarnpkg.com/git-repo-info/-/git-repo-info-2.1.1.tgz#220ffed8cbae74ef8a80e3052f2ccb5179aed058"
integrity sha512-8aCohiDo4jwjOwma4FmYFd3i97urZulL8XL24nIPxuE+GZnfsAyy/g2Shqx6OjUiFKUXZM+Yy+KHnOmmA3FVcg==

git-repo-version@0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/git-repo-version/-/git-repo-version-0.2.0.tgz#9a1d0019a50fc9e623c43d1c0fcc437391207d0d"
integrity sha1-mh0AGaUPyeYjxD0cD8xDc5EgfQ0=
dependencies:
git-repo-info "^1.0.4"

git-repo-version@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/git-repo-version/-/git-repo-version-1.0.2.tgz#2c8e9bee5d970cafc0dd58480f9dc56d9afe8e4f"
Expand Down Expand Up @@ -8175,6 +8196,11 @@ invariant@^2.2.2, invariant@^2.2.4:
dependencies:
loose-envify "^1.0.0"

ip-regex@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9"
integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=

ip@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"
Expand Down Expand Up @@ -8891,6 +8917,11 @@ locate-path@^5.0.0:
dependencies:
p-locate "^4.1.0"

lodash-node@^3.2.0:
version "3.10.2"
resolved "https://registry.yarnpkg.com/lodash-node/-/lodash-node-3.10.2.tgz#2598d5b1b54e6a68b4cb544e5c730953cbf632f7"
integrity sha1-JZjVsbVOami0y1ROXHMJU8v2Mvc=

lodash._baseassign@^3.0.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e"
Expand Down Expand Up @@ -9371,11 +9402,6 @@ merge2@^1.2.3, merge2@^1.3.0:
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz#5b366ee83b2f1582c48f87e47cf1a9352103ca81"
integrity sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==

merge@~1.2.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145"
integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==

mermaid@^7.0.3:
version "7.1.2"
resolved "https://registry.yarnpkg.com/mermaid/-/mermaid-7.1.2.tgz#6265728156c2e0891e004cba60a44022174487ad"
Expand Down Expand Up @@ -10778,6 +10804,11 @@ psl@^1.1.24:
resolved "https://registry.yarnpkg.com/psl/-/psl-1.4.0.tgz#5dd26156cdb69fa1fdb8ab1991667d3f80ced7c2"
integrity sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==

psl@^1.1.28:
version "1.7.0"
resolved "https://registry.yarnpkg.com/psl/-/psl-1.7.0.tgz#f1c4c47a8ef97167dea5d6bbf4816d736e884a3c"
integrity sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==

public-encrypt@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0"
Expand Down Expand Up @@ -10825,7 +10856,7 @@ punycode@^1.2.4, punycode@^1.4.1:
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
integrity sha1-wNWmOycYgArY4esPpSachN1BhF4=

punycode@^2.1.0:
punycode@^2.1.0, punycode@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
Expand Down Expand Up @@ -11501,7 +11532,12 @@ route-recognizer@^0.3.3:
resolved "https://registry.yarnpkg.com/route-recognizer/-/route-recognizer-0.3.3.tgz#1d365e27fa6995e091675f7dc940a8c00353bd29"
integrity sha1-HTZeJ/ppleCRZ199yUCowANTvSk=

rsvp@^3.0.14, rsvp@^3.0.17, rsvp@^3.0.18, rsvp@^3.0.21, rsvp@^3.0.6, rsvp@^3.1.0, rsvp@^3.5.0:
rsvp@3.0.14:
version "3.0.14"
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.0.14.tgz#9d2968cf36d878d3bb9a9a5a4b8e1ff55a76dd31"
integrity sha1-nSlozzbYeNO7mppaS44f9Vp23TE=

rsvp@^3.0.14, rsvp@^3.0.17, rsvp@^3.0.18, rsvp@^3.0.21, rsvp@^3.0.6, rsvp@^3.1.0:
version "3.6.2"
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a"
integrity sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==
Expand Down Expand Up @@ -12695,7 +12731,16 @@ torii@^0.10.0:
dependencies:
ember-cli-babel "^6.11.0"

tough-cookie@>=0.12.0, tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3:
tough-cookie@>=0.12.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz#9df4f57e739c26930a018184887f4adb7dca73b2"
integrity sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==
dependencies:
ip-regex "^2.1.0"
psl "^1.1.28"
punycode "^2.1.1"

tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781"
integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==
Expand Down Expand Up @@ -12818,7 +12863,12 @@ typescript-memoize@^1.0.0-alpha.3:
dependencies:
core-js "2.4.1"

uc.micro@^1.0.0, uc.micro@^1.0.1, uc.micro@^1.0.5:
uc.micro@^1.0.0:
version "1.0.6"
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==

uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.5.tgz#0c65f15f815aa08b560a61ce8b4db7ffc3f45376"
integrity sha512-JoLI4g5zv5qNyT09f4YAvEZIIV1oOjqnewYg5D38dkQljIzpPT296dbIGvKro3digYI1bkb7W6EP1y4uDlmzLg==
Expand Down Expand Up @@ -13054,7 +13104,7 @@ w3c-hr-time@^1.0.1:
dependencies:
browser-process-hrtime "^0.1.2"

walk-sync@^0.2.5:
walk-sync@^0.2.0, walk-sync@^0.2.5:
version "0.2.7"
resolved "https://registry.yarnpkg.com/walk-sync/-/walk-sync-0.2.7.tgz#b49be4ee6867657aeb736978b56a29d10fa39969"
integrity sha1-tJvk7mhnZXrrc2l4tWop0Q+jmWk=
Expand Down Expand Up @@ -13465,7 +13515,7 @@ yui@^3.18.1:
dependencies:
request "~2.40.0"

yuidocjs@^0.10.2:
yuidocjs@^0.10.0:
version "0.10.2"
resolved "https://registry.yarnpkg.com/yuidocjs/-/yuidocjs-0.10.2.tgz#33924967ce619024cd70ef694e267d2f988f73f6"
integrity sha1-M5JJZ85hkCTNcO9pTiZ9L5iPc/Y=
Expand Down
7 changes: 5 additions & 2 deletions yuidoc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"name": "ember-simple-auth",
"options": {
"enabledEnvironments": ["production"],
"paths": [
"addon"
],
"exclude": "vendor",
"outdir": "../docs",
"yuidoc": {
"linkNatives": true,
"quiet": true,
"parseOnly": true,
"lint": false
}
},
"themedir": "docs/theme",
"helpers": ["docs/theme/helpers/helpers.js"]
}

}

0 comments on commit a542801

Please sign in to comment.