-
Notifications
You must be signed in to change notification settings - Fork 132
New SDK Reference Website #289
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
Conversation
haoliu-amp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the generated markdown file shouldn't be checked into master branch.
They should be generated when you trigger a new release and putting them to gh-pages branch.
kelvin-lu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exciting 🚢
| "build": "docusaurus build", | ||
| "swizzle": "docusaurus swizzle", | ||
| "deploy": "docusaurus deploy", | ||
| "serve": "docusaurus build --out-dir build/Amplitude-JavaScript && yarn run docusaurus serve" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how would you feel if docusarus did not run on port :3000 as default? :)
* init docusaurus * remove blog * replace image assets * update footer * update navbar * update docusaurus config * edit landing page * change css theme * add amplitude-js docs * add jsdoc-to-markdown * add generate-jsdoc.js and prettier to format md output * Replace default docs with generated API docs * remove footer content * make sidebar uncollapsible * add syntax highlight to examples * change docusaurus target browsers * change docs to include constructor * make website docs only * change docs/ to website/ * fix baseUrl config * Fix baseUrl problem with yarn serve * update readme * delete autogenerated docs * Add autogenerated docs to gitignore
Check it out at https://amplitude.github.io/Amplitude-JavaScript/
Summary
website/folder containing content for developing and deploying the reference website using docusaurusnpx @docusaurus/init@next init docs classictemplate and replaces it with amplitude related contentwebsite/generate-jsdoc.jsthat scanssrc/and outputs autogenerated markdown docs inwebsite/docs/jsdoc2mdpackage as an API to interact with jsdoc commentswebsite/README.mdfor development and deployment instructions