Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Generate MD docs for all packages #2033

Merged
merged 38 commits into from
Aug 26, 2019
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5945635
Remove doc commands from sol-tracing-utils because we don't gen docs …
fabioberger Aug 3, 2019
957e6b1
Add Doc MD generation & S3 upload commands and generate the MD docs f…
fabioberger Aug 3, 2019
4566ddb
Split MD doc generation and S3 uploading
fabioberger Aug 3, 2019
7aacff6
Add MD doc generation and S3 upload to publishing flow
fabioberger Aug 3, 2019
41fcc41
Fix linter
fabioberger Aug 3, 2019
67322ba
Only upload MD docs if an actual publish
fabioberger Aug 3, 2019
326539f
Update ts-docs-gen dep and re-generate the reference docs
fabioberger Aug 3, 2019
1ed6696
Prettierignore generated docs
fabioberger Aug 4, 2019
549e35e
Update yarn.lock
fabioberger Aug 4, 2019
706f04e
Remove forced resolution of `graceful-fs` since new Lerna version dep…
fabioberger Aug 4, 2019
c1ccb5a
Update Typedoc version
fabioberger Aug 5, 2019
0185306
Fix ts-doc-gen version to 0.0.7
fabioberger Aug 5, 2019
436bdde
Temporarily ignore compiler errors since Typedoc is using Typescript …
fabioberger Aug 5, 2019
b0c9a3b
Remove excess comma
fabioberger Aug 8, 2019
4161055
Remove all localhost resolutions from yarn
fabioberger Aug 8, 2019
b503fec
Add ignore compiler errors in Typedoc json command for now
fabioberger Aug 9, 2019
ceaa6a5
Update ts-doc-gen
fabioberger Aug 9, 2019
bd2e4a8
Store contract-wrappers node_modules as artifacts
fabioberger Aug 9, 2019
9af996a
Upgrade circleCI yarn
fabioberger Aug 9, 2019
73c53b3
Use .mdx extension for packages
fabioberger Aug 9, 2019
577df37
Remove temporary artifact
fabioberger Aug 9, 2019
1634cd5
Update ts-doc-gen dep
fabioberger Aug 10, 2019
80d93e8
Output reference docs with mdx file extension
fabioberger Aug 10, 2019
108861b
Update ts-doc-gen to version that removes absolute paths from docs
fabioberger Aug 12, 2019
f6b67f6
Remove absolute paths from docs
fabioberger Aug 12, 2019
e92e99d
Add missing devDep
fabioberger Aug 17, 2019
c3f98e9
Remove 0x.js from packages getting MD docs generated for them
fabioberger Aug 17, 2019
d155322
Update yarn.lock
fabioberger Aug 17, 2019
b0e56fc
Bump version of ts-doc-gen
fabioberger Aug 23, 2019
9b12695
Fix rebase issue
fabioberger Aug 23, 2019
87f31ec
Update yarn.lock
fabioberger Aug 23, 2019
d8ccc16
merge development
fabioberger Aug 23, 2019
368ae86
Add MD docs diff test to CI
fabioberger Aug 23, 2019
bfbc78c
Remove unused dep
fabioberger Aug 25, 2019
6e2d0ab
Update docs to latest format
fabioberger Aug 25, 2019
e78288d
Update yarn.lock
fabioberger Aug 25, 2019
6474a4e
Update ts-doc-gen with fix for multi-link lines
fabioberger Aug 26, 2019
e452cfc
Final docs gen
fabioberger Aug 26, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# command: npm set prefix=/home/circleci/npm && echo 'export PATH=$HOME/circleci/npm/bin:$PATH' >> /home/circleci/.bashrc
- run:
name: install-yarn
command: npm install --global yarn@1.9.4
command: npm install --global yarn@1.17.0
- run:
name: yarn
command: yarn --frozen-lockfile --ignore-engines install || yarn --frozen-lockfile --ignore-engines install
Expand Down Expand Up @@ -302,6 +302,7 @@ jobs:
- run: yarn lerna run lint
- run: yarn prettier:ci
- run: yarn deps_versions:ci
- run: yarn diff_md_docs:ci
- run: cd packages/0x.js && yarn build:umd:prod
- run: yarn bundlewatch
submit-coverage:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,6 @@ python-packages/*/.coverage

# python keeps package-local copies of json schemas
python-packages/json_schemas/src/zero_ex/json_schemas/schemas

# Doc README copy
packages/*/docs/README.md
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ packages/sol-coverage/test/fixtures/artifacts
packages/abi-gen/test-cli/fixtures/artifacts/AbiGenDummy.json
packages/abi-gen/test-cli/fixtures/artifacts/LibDummy.json
packages/abi-gen/test-cli/fixtures/artifacts/TestLibDummy.json
packages/*/docs
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@
"test": "wsrun test $PKG --fast-exit --serial --exclude-missing",
"test:contracts": "wsrun test -p ${npm_package_config_contractsPackages} -c --fast-exit --serial --exclude-missing",
"generate_doc": "node ./packages/monorepo-scripts/lib/doc_generate_and_upload.js",
"generate_md_docs": "wsrun docs:md --exclude-missing",
"upload_md_docs": "wsrun s3:sync_md_docs --exclude-missing",
"diff_md_docs:ci": "wsrun diff_docs --exclude-missing",
"test:generate_docs:circleci": "for i in ${npm_package_config_packagesWithDocPages}; do yarn generate_doc --package $i --shouldUpload false --isStaging true || break -1; done;",
"bundlewatch": "bundlewatch",
"lint": "wsrun lint $PKG --fast-exit --parallel --exclude-missing"
},
"config": {
"contractsPackages": "@0x/contracts-asset-proxy @0x/contracts-erc20 @0x/contracts-erc721 @0x/contracts-erc1155 @0x/contracts-exchange @0x/contracts-exchange-forwarder @0x/contracts-exchange-libs @0x/contracts-extensions @0x/contracts-multisig @0x/contracts-test-utils @0x/contracts-utils @0x/contracts-coordinator @0x/contracts-dev-utils",
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic",
"packagesWithDocPages": "0x.js connect json-schemas subproviders web3-wrapper order-utils sol-compiler sol-coverage sol-profiler sol-trace ethereum-types asset-buyer migrations",
"packagesWithDocPages": "connect json-schemas subproviders web3-wrapper order-utils sol-compiler sol-coverage sol-profiler sol-trace ethereum-types asset-buyer migrations",
"ignoreDependencyVersions": "@types/styled-components @types/node",
"ignoreDependencyVersionsForPackage": "website instant dev-tools-pages contract-wrappers"
},
Expand All @@ -73,9 +76,6 @@
"repoBranchBase": "development"
}
},
"resolutions": {
"graceful-fs": "4.1.15"
},
"devDependencies": {
"@0x-lerna-fork/lerna": "3.16.10",
"@0xproject/npm-cli-login": "^0.0.11",
Expand Down
4 changes: 2 additions & 2 deletions packages/0x.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"clean": "shx rm -rf _bundles lib test_temp src/generated_contract_wrappers generated_docs",
"build:umd:prod": "NODE_ENV=production node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
"build:commonjs": "tsc -b",
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES"
"docs:json": "typedoc --excludePrivate --excludeExternals --ignoreCompilerErrors --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES"
},
"config": {
"postpublish": {
Expand Down Expand Up @@ -66,7 +66,7 @@
"sinon": "^4.0.0",
"source-map-support": "^0.5.0",
"tslint": "5.11.0",
"typedoc": "0.13.0",
"typedoc": "^0.15.0",
"typescript": "3.0.1",
"uglifyjs-webpack-plugin": "^2.0.1",
"webpack": "^4.20.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-gen-wrappers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prettier_contract_wrappers": "prettier --write src/generated-wrappers/* --config ../../.prettierrc",
"clean": "shx rm -rf lib src/generated-wrappers",
"generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --output src/generated-wrappers --backend ethers",
"docs": "typedoc --excludePrivate --excludeExternals --target ES5 --tsconfig typedoc-tsconfig.json --out generated_docs ./src/generated-wrappers/*"
"docs": "typedoc --excludePrivate --excludeExternals --ignoreCompilerErrors --target ES5 --tsconfig typedoc-tsconfig.json --out generated_docs ./src/generated-wrappers/*"
},
"config": {
"abis": "../contract-artifacts/artifacts/@(AssetProxyOwner|DevUtils|DutchAuction|DummyERC20Token|DummyERC721Token|ERC20Proxy|ERC20Token|ERC721Proxy|ERC721Token|Exchange|Forwarder|IAssetProxy|IValidator|IWallet|MultiAssetProxy|OrderValidator|WETH9|ZRXToken|Coordinator|CoordinatorRegistry|EthBalanceChecker|ERC1155Proxy|StaticCallProxy).json"
Expand Down
Loading