Skip to content

Change documentation to esdoc - #7490

Merged
janmeier merged 11 commits into
masterfrom
esdoc
Apr 11, 2017
Merged

janmeier merged 11 commits into
masterfrom
esdoc

Conversation

@janmeier

@janmeier janmeier commented Apr 4, 2017

Copy link
Copy Markdown
Member

Why?

  • We don't want to keep the generated API docs in the repo
  • We (I) don't want to maintain a custom script to generate the docs

Now, docs will be continously deployed to surge.sh (static hosting) (I've added redirects for the old URLs, see docs/ROUTER). The v3 docs will stay on RTD, with a redirect from /en/v3 to the RTD site, so for v3 users there will be no changes. Once this is merged, I'm also going to add notices about the new docs on the v3 docs.

This will mean you can only view the docs for the most recent version. We will probably push the docs to a subdomain (https://v4.docs.sequelizejs.com etc.) once that becomes a problem.

@janmeier

janmeier commented Apr 4, 2017 •

Copy link
Copy Markdown
Member Author

Comment thread lib/associations/base.js
const AssociationError = require('./../errors').AssociationError;


/**

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taken from lib/associations/mixin

const singular = Utils.uppercaseFirst(this.options.name.singular);

this.accessors = {
/**

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved down to the actual functions (esdoc doesn't understand this)

Comment thread lib/associations/mixin.js
*/
const Mixin = {
/**
* Creates a 1:m association between this (the source) and the provided target. The foreign key is added on the target.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to methods on model.js (esdoc doesn't like mixins)

Comment thread lib/errors.js
@@ -1,398 +1,3 @@
'use strict';

/**

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to lib/errors/index.js, to get a more reasonable separation of the classes in the api ref (subfolder = new section)

@codecov-io

codecov-io commented Apr 4, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #7490 into master will decrease coverage by 5.21%.
The diff coverage is 100%.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c381625...c45248d. Read the comment docs.

@mkaufmaner mkaufmaner added docs For issues and PRs. Things related to documentation, such as changes in the manuals / API reference. type: feature DEPRECATED: replace with the "feature" issue type breaking change For issues and PRs. Changes that break compatibility and require a major version increment. labels Apr 4, 2017
@mkaufmaner mkaufmaner added this to the 4.0 milestone Apr 4, 2017

@mkaufmaner mkaufmaner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would introduce a number of broken links throughout the ./docs/ markdown files. I'm pretty sure its something a little regex can fix ;)

@janmeier

janmeier commented Apr 4, 2017

Copy link
Copy Markdown
Member Author

@mkaufmaner I'm trying to figure out how to do a wildcard redirect with surge now

@janmeier
janmeier merged commit 688dd00 into master Apr 11, 2017
@janmeier
janmeier deleted the esdoc branch April 11, 2017 12:58
mkaufmaner pushed a commit to mkaufmaner/sequelize that referenced this pull request Apr 25, 2017
* docs: first esdoc steps

* remove: deprecated articles

* fix: a bit of indentation

* add: router with redirects for surge

* fix: small css fixes (hide docs links). fix docs command

* add domain to travis.yml

* chore(package): remove unused packages, add esdoc

* fix: lint

* fix: links in /docs + other small changes

* shields

* remove eslint comments. Add back UnknownConstraintError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change For issues and PRs. Changes that break compatibility and require a major version increment. docs For issues and PRs. Things related to documentation, such as changes in the manuals / API reference. type: feature DEPRECATED: replace with the "feature" issue type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants