- install docusaurs - update content to work with docusaurs - remove typedoc mention typegoose/typegoose#273pull/330/head
parent
302a9a82aa
commit
f4f9a1d167
@ -0,0 +1,47 @@ |
||||
--- |
||||
id: array-prop |
||||
title: 'Array Prop' |
||||
--- |
||||
|
||||
`@arrayProp(options: object)` is almost the same as `@prop`, here are just the differences listed. |
||||
|
||||
Please note that Mongoose initializes arrayProp arrays with `[]` instead of `null` / `undefined`. |
||||
|
||||
**Note**: Deprecated since 7.1.1, replaced with [`@prop`](api/decorators/prop.md) |
||||
**Note**: This decorator will get removed in 8.0 |
||||
|
||||
## Options |
||||
|
||||
*All options from [`@prop`](api/decorators/prop.md#options) are valid.* |
||||
|
||||
### items |
||||
|
||||
Accepts Type: `any` |
||||
(alias for [`type`](api/decorators/prop.md#type) from `@prop`) |
||||
|
||||
Deprecated since `7.2.0`, use [`@prop`'s `type`](api/decorators/prop.md#type) |
||||
|
||||
(see [`type`](api/decorators/prop.md#type) for Examples) |
||||
|
||||
### innerOptions |
||||
|
||||
`innerOptions` is used to overwrite options to be at the "Type" level |
||||
-> Use this only when absolutely necessary and please open a new |
||||
issue about it |
||||
|
||||
[see `innerOptions` in prop](api/decorators/prop.md#innerOptions) |
||||
|
||||
### outerOptions |
||||
|
||||
`outerOptions` is used to overwrite options to be at the "Array" level |
||||
-> Use this only when absolutely necessary and please open a new |
||||
issue about it |
||||
|
||||
[see `outerOptions` in prop](api/decorators/prop.md#outerOptions) |
||||
|
||||
### dim |
||||
|
||||
`dim` is used to set the Dimensions this array should have (for something like an matrix) |
||||
-> needs to be higher than 0 |
||||
|
||||
[see `dim` in prop](api/decorators/prop.md#dim) |
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: hooks |
||||
title: 'Hooks' |
||||
--- |
||||
|
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: indexes |
||||
title: "Indexes" |
||||
--- |
||||
|
@ -0,0 +1,22 @@ |
||||
--- |
||||
id: map-prop |
||||
title: "Map Prop" |
||||
--- |
||||
|
||||
`@mapProp(options: object)` is a decorator which makes it possible to create map schema properties, here are just the differences listed |
||||
|
||||
**Note**: this decorator will get removed in 8.0 |
||||
**Note**: Deprecated since 7.1.1, replace with [`@prop`](api/decorators/prop.md) |
||||
|
||||
## Options |
||||
|
||||
*All options from [`@prop`](api/decorators/prop.md#options) are valid* |
||||
|
||||
### of |
||||
|
||||
Accepts Type: `any` |
||||
(alias for [`type`](api/decorators/prop.md#type) from `@prop`) |
||||
|
||||
Deprecated since `7.2.0`, use [`@prop`'s `type`](api/decorators/prop.md#type) |
||||
|
||||
(see [`type`](api/decorators/prop.md#type) for Examples) |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: model-options |
||||
title: 'Model Options' |
||||
redirect_from: |
||||
- /docs/decorators/modeloptions |
||||
--- |
||||
|
||||
`@modelOptions(options: object)` is used for setting options like schema options, an existing connect and/or an existing Mongoose. |
@ -1,9 +1,6 @@ |
||||
--- |
||||
id: query-method |
||||
title: 'Query Methods' |
||||
redirect_from: |
||||
- /docs/decorators/querymethod |
||||
- /docs/decorators/querymethods |
||||
- /docs/decorators/queryMethods |
||||
--- |
||||
|
||||
`@queryMethod(func: (this: ReturnModelType<U, QueryHelpers>, ...args: any[]) => mongoose.DocumentQuery)` is a decorator to add [custom query methods](https://thecodebarbarian.com/mongoose-custom-query-methods) |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: add-model-to-typegoose |
||||
title: 'Add Model To Typegoose' |
||||
redirect_from: |
||||
- /docs/functions/addmodeltotypegoose |
||||
--- |
||||
|
||||
`addModelToTypegoose(model: mongoose.model<any>, class)` is used to get a model with TypeScript type information & to allow `getClassForDocument` to work. |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: assertions |
||||
title: 'Assertions' |
||||
redirect_from: |
||||
- /docs/functions/assertions |
||||
--- |
||||
|
||||
## assertion |
@ -1,12 +1,11 @@ |
||||
--- |
||||
id: build-schema |
||||
title: "Build Schema" |
||||
redirect_from: |
||||
- /docs/functions/buildschema |
||||
--- |
||||
|
||||
`buildSchema(class)` gets the schema from a class to modify the schema before making the model. |
||||
|
||||
A compiled model can be re-added with [`addModelToTypegoose`]({{ site.baseurl }}{% link _docs/functions/addModelToTypegoose.md %}). |
||||
A compiled model can be re-added with [`addModelToTypegoose`](api/functions/addModelToTypegoose.md). |
||||
|
||||
## Example |
||||
|
@ -1,9 +1,6 @@ |
||||
--- |
||||
id: delete-model |
||||
title: "Delete Models" |
||||
redirect_from: |
||||
- /docs/functions/deletemodel |
||||
- /docs/functions/deletemodels |
||||
- /docs/functions/deleteModels |
||||
--- |
||||
|
||||
## deleteModel |
@ -1,13 +1,12 @@ |
||||
--- |
||||
id: get-class |
||||
title: 'Get Class' |
||||
redirect_from: |
||||
- /docs/functions/getclass |
||||
--- |
||||
|
||||
`getClass(input: any)` gets the class in a variety of ways. |
||||
Overloads: |
||||
|
||||
- `getClass(input: mongoose.Document)`: get the class like in [`getClassForDocument`]({{ site.baseurl }}{% link _docs/functions/getClassForDocument.md%}) |
||||
- `getClass(input: mongoose.Document)`: get the class like in [`getClassForDocument`](api/functions/getClassForDocument.md) |
||||
- `getClass(input: mongoose.Schema.Types.Embedded`: get the class for a nested document |
||||
- `getClass(input: string)`: get the class by the name directly |
||||
- `getClass(input: { typegooseName: string })`: get the class by using some object with the key `typegooseName` of type `string` |
@ -1,12 +1,11 @@ |
||||
--- |
||||
id: get-class-for-document |
||||
title: 'Get Class for Document' |
||||
redirect_from: |
||||
- /docs/functions/getclassfordocument |
||||
--- |
||||
|
||||
`getClassForDocument(doc: DocumentType<any>)` gets the Class used in the model creation. |
||||
|
||||
Note: this only works if the class / model was created with Typegoose OR added with [`addModelToTypegoose`]({{ site.baseurl }}{% link _docs/functions/addModelToTypegoose.md%}). |
||||
Note: this only works if the class / model was created with Typegoose OR added with [`addModelToTypegoose`](api/functions/addModelToTypegoose.md). |
||||
|
||||
## Example |
||||
|
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: get-discriminator-model-for-class |
||||
title: 'Get Discriminator Model For Class' |
||||
redirect_from: |
||||
- /docs/functions/getdiscriminatormodelforclass |
||||
--- |
||||
|
||||
`getDiscriminatorModelForClass(from: mongoose.model<any>, class, discriminator?: string)` gets a model for a given discriminator. |
@ -1,12 +1,11 @@ |
||||
--- |
||||
id: get-model-for-class |
||||
title: 'Get Model For Class' |
||||
redirect_from: |
||||
- /docs/functions/getmodelforclass |
||||
--- |
||||
|
||||
`getModelForClass(class, overwriteOptions)` gets a model for a given class. If no Mongoose Model exists for this class yet, one will be created automatically. |
||||
|
||||
[All options that can be specified with `overwriteOptions`.]({{ site.baseurl }}{% link _docs/decorators/modelOptions.md%}#Options) |
||||
[All options that can be specified with `overwriteOptions`.](api/decorators/modelOptions.md#Options) |
||||
|
||||
## Example |
||||
|
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: get-model-with-string |
||||
title: 'Get Model With String' |
||||
redirect_from: |
||||
- /docs/functions/getmodelwithstring |
||||
--- |
||||
|
||||
`getModelWithString(key)` retrieves a model with the given key. If no Mongoose model exists in Typegoose's internal cache, it will return `undefined`. |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: get-name |
||||
title: 'Get Name For Class' |
||||
redirect_from: |
||||
- /docs/functions/getname |
||||
--- |
||||
|
||||
`getName(class)` gets the name of the resulting model (accounts for `customName` & `automaticName`) |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: is-document |
||||
title: 'Is Document' |
||||
redirect_from: |
||||
- /docs/functions/typeguards/isdocument |
||||
--- |
||||
|
||||
## isDocument |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: is-ref-type |
||||
title: 'Is Ref-Type' |
||||
redirect_from: |
||||
- /docs/functions/typeguards/isreftype |
||||
--- |
||||
|
||||
## isRefType |
@ -1,11 +1,10 @@ |
||||
--- |
||||
id: index-api |
||||
title: 'Index of Manual-Documentation' |
||||
permalink: '/docs' |
||||
toc: false |
||||
--- |
||||
|
||||
This Documentation is manually written. To view an automatically-generated up-to-date documentation, please go to our [TypeDoc-Generated Documentation]({{ site.baseurl }}/typedoc) |
||||
This Documentation is manually written. To view an automatically-generated up-to-date documentation, please go to our [TypeDoc-Generated Documentation](typegoose/typedoc) |
||||
|
||||
When you are searching for guides, look at [the Guides Section]({{ site.baseurl }}{% link _guides/quick-start-guide.md %}) |
||||
When you are searching for guides, look at [the Guides Section](guides/quick-start-guide.md) |
||||
|
||||
*This Documentation & Guides refer to the current version, for older version please clone the repo & revert to the last commit of a version.* |
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: additional-types |
||||
title: "Additional Types" |
||||
--- |
||||
|
@ -1,8 +1,6 @@ |
||||
--- |
||||
id: document-type |
||||
title: 'Document Type' |
||||
redirect_from: |
||||
- /docs/types/document |
||||
- /docs/types/documenttype |
||||
--- |
||||
|
||||
*previously known as `InstanceType<T>`* |
@ -1,10 +1,11 @@ |
||||
--- |
||||
id: ref-type |
||||
title: 'Ref' |
||||
--- |
||||
|
||||
The Type `Ref<T>` is the type used for [References](https://mongoosejs.com/docs/populate.html). |
||||
|
||||
There are [typeguards]({{ site.baseurl }}{% link _docs/functions/typeguards/isDocument.md %}) to check if a Reference is populated. |
||||
There are [typeguards](api/functions/typeguards/isDocument.md) to check if a Reference is populated. |
||||
|
||||
## Example |
||||
|
@ -1,13 +1,12 @@ |
||||
--- |
||||
id: return-model-type |
||||
title: 'Return Model Type' |
||||
redirect_from: |
||||
- /docs/types/returnmodeltype |
||||
--- |
||||
|
||||
The Type `ReturnModelType<T, QueryHelpers>` is the type used to have type information for a class converted to a Mongoose Model. |
||||
|
||||
- `T` is the logical `AND` of `mongoose.Model<DocumentType<T>>` and `T` |
||||
- `QueryHelpers` is for a Query-Helpers interface, [more here]({{ site.baseurl }}{% link _docs/decorators/queryMethod.md%}) |
||||
- `QueryHelpers` is for a Query-Helpers interface, [more here](api/decorators/queryMethod.md) |
||||
|
||||
**Notes**: |
||||
- It has to be always with `typeof Class`, otherwise it will not work |
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: common-plugins |
||||
title: 'Common Plugins' |
||||
--- |
||||
|
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: custom-types |
||||
title: 'Custom Types' |
||||
--- |
||||
|
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: logger |
||||
title: "Typegoose's Logger" |
||||
--- |
||||
|
@ -1,7 +1,6 @@ |
||||
--- |
||||
title: 'Model with same name' |
||||
description: > |
||||
Models with the same name OR models with a different collection. |
||||
id: models-with-same-name |
||||
title: 'Models with same name' |
||||
--- |
||||
|
||||
This Guide shows all the possibilities for a model to use different names. |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: using-objectid-type |
||||
title: 'Using ObjectId Type' |
||||
redirect_from: |
||||
- /guides/advanced/objectid |
||||
--- |
||||
|
||||
Using the type `ObjectId` can be done by defining it as follows: |
@ -1,7 +1,6 @@ |
||||
--- |
||||
id: reference-other-classes |
||||
title: 'Reference other Classes' |
||||
description: > |
||||
Reference other Classes as a Property of an class |
||||
--- |
||||
|
||||
## Referencing other Classes |
@ -0,0 +1,22 @@ |
||||
--- |
||||
id: all-decorators |
||||
title: 'All the Decorators' |
||||
--- |
||||
|
||||
This Guide shows all the decorators that can be used for / in a class. |
||||
|
||||
## All Decorators |
||||
|
||||
- All Property decorators: |
||||
- [`@prop`](api/decorators/prop.md) is the most important decorator, because it defines values(\|keys) that are then in the model & document. |
||||
- [`@arrayProp`](api/decorators/arrayProp.md) it is the same as `@prop`, just for arrays **[Deprecated]** |
||||
- [`@mapProp`](api/decorators/mapProp.md) is for a Map<string, T> **[Deprecated]** |
||||
<!--This is just a separator--> |
||||
- All Class decorators: |
||||
- [`@modelOptions`](api/decorators/modelOptions.md), used for Schema Options, an existing Mongoose and an existing Connection |
||||
- [`@index`](api/decorators/indexes.md) is for indexes, that are **NOT** defined in the prop (mainly for compound indexes) |
||||
- [`@plugin`](api/decorators/plugins.md) is for adding plugins. Please note that plugins cannot modify the types of prop, we are sorry for this. |
||||
- [`@queryMethod`](api/decorators/queryMethod.md) is for adding query Methods. |
||||
- [Hooks](api/decorators/hooks.md): |
||||
- `@pre` is for Pre-Hooks. |
||||
- `@post` is for Post-Hooks. |
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: deprecation-codes |
||||
title: "Deprecation Codes" |
||||
--- |
||||
|
@ -1,6 +1,6 @@ |
||||
--- |
||||
id: migrate-7 |
||||
title: 'Migrate to 7.0.0' |
||||
classes: wide |
||||
--- |
||||
|
||||
These are the changes made for 7.0.0 that are breaking or just important to know |
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: mongoose-compatibility |
||||
title: "Mongoose Compatibility" |
||||
--- |
||||
|
@ -1,4 +1,5 @@ |
||||
--- |
||||
id: motivation |
||||
title: 'Motivation' |
||||
--- |
||||
|
@ -1,7 +0,0 @@ |
||||
# Please don't forget to modify "travis-.gitignore" too! |
||||
|
||||
_site/ |
||||
.sass-cache/ |
||||
.jekyll-metadata/ |
||||
|
||||
typedoc/ |
@ -1,6 +0,0 @@ |
||||
source "https://rubygems.org" |
||||
|
||||
group :jekyll_plugins do |
||||
gem "github-pages" |
||||
gem "jekyll-include-cache" |
||||
end |
@ -1,251 +0,0 @@ |
||||
GEM |
||||
remote: https://rubygems.org/ |
||||
specs: |
||||
activesupport (6.0.3.1) |
||||
concurrent-ruby (~> 1.0, >= 1.0.2) |
||||
i18n (>= 0.7, < 2) |
||||
minitest (~> 5.1) |
||||
tzinfo (~> 1.1) |
||||
zeitwerk (~> 2.2, >= 2.2.2) |
||||
addressable (2.7.0) |
||||
public_suffix (>= 2.0.2, < 5.0) |
||||
coffee-script (2.4.1) |
||||
coffee-script-source |
||||
execjs |
||||
coffee-script-source (1.11.1) |
||||
colorator (1.1.0) |
||||
commonmarker (0.17.13) |
||||
ruby-enum (~> 0.5) |
||||
concurrent-ruby (1.1.6) |
||||
dnsruby (1.61.3) |
||||
addressable (~> 2.5) |
||||
em-websocket (0.5.1) |
||||
eventmachine (>= 0.12.9) |
||||
http_parser.rb (~> 0.6.0) |
||||
ethon (0.12.0) |
||||
ffi (>= 1.3.0) |
||||
eventmachine (1.2.7) |
||||
execjs (2.7.0) |
||||
faraday (1.0.1) |
||||
multipart-post (>= 1.2, < 3) |
||||
ffi (1.12.2) |
||||
forwardable-extended (2.6.0) |
||||
gemoji (3.0.1) |
||||
github-pages (206) |
||||
github-pages-health-check (= 1.16.1) |
||||
jekyll (= 3.8.7) |
||||
jekyll-avatar (= 0.7.0) |
||||
jekyll-coffeescript (= 1.1.1) |
||||
jekyll-commonmark-ghpages (= 0.1.6) |
||||
jekyll-default-layout (= 0.1.4) |
||||
jekyll-feed (= 0.13.0) |
||||
jekyll-gist (= 1.5.0) |
||||
jekyll-github-metadata (= 2.13.0) |
||||
jekyll-mentions (= 1.5.1) |
||||
jekyll-optional-front-matter (= 0.3.2) |
||||
jekyll-paginate (= 1.1.0) |
||||
jekyll-readme-index (= 0.3.0) |
||||
jekyll-redirect-from (= 0.15.0) |
||||
jekyll-relative-links (= 0.6.1) |
||||
jekyll-remote-theme (= 0.4.1) |
||||
jekyll-sass-converter (= 1.5.2) |
||||
jekyll-seo-tag (= 2.6.1) |
||||
jekyll-sitemap (= 1.4.0) |
||||
jekyll-swiss (= 1.0.0) |
||||
jekyll-theme-architect (= 0.1.1) |
||||
jekyll-theme-cayman (= 0.1.1) |
||||
jekyll-theme-dinky (= 0.1.1) |
||||
jekyll-theme-hacker (= 0.1.1) |
||||
jekyll-theme-leap-day (= 0.1.1) |
||||
jekyll-theme-merlot (= 0.1.1) |
||||
jekyll-theme-midnight (= 0.1.1) |
||||
jekyll-theme-minimal (= 0.1.1) |
||||
jekyll-theme-modernist (= 0.1.1) |
||||
jekyll-theme-primer (= 0.5.4) |
||||
jekyll-theme-slate (= 0.1.1) |
||||
jekyll-theme-tactile (= 0.1.1) |
||||
jekyll-theme-time-machine (= 0.1.1) |
||||
jekyll-titles-from-headings (= 0.5.3) |
||||
jemoji (= 0.11.1) |
||||
kramdown (= 1.17.0) |
||||
liquid (= 4.0.3) |
||||
mercenary (~> 0.3) |
||||
minima (= 2.5.1) |
||||
nokogiri (>= 1.10.4, < 2.0) |
||||
rouge (= 3.19.0) |
||||
terminal-table (~> 1.4) |
||||
github-pages-health-check (1.16.1) |
||||
addressable (~> 2.3) |
||||
dnsruby (~> 1.60) |
||||
octokit (~> 4.0) |
||||
public_suffix (~> 3.0) |
||||
typhoeus (~> 1.3) |
||||
html-pipeline (2.13.0) |
||||
activesupport (>= 2) |
||||
nokogiri (>= 1.4) |
||||
http_parser.rb (0.6.0) |
||||
i18n (0.9.5) |
||||
concurrent-ruby (~> 1.0) |
||||
jekyll (3.8.7) |
||||
addressable (~> 2.4) |
||||
colorator (~> 1.0) |
||||
em-websocket (~> 0.5) |
||||
i18n (~> 0.7) |
||||
jekyll-sass-converter (~> 1.0) |
||||
jekyll-watch (~> 2.0) |
||||
kramdown (~> 1.14) |
||||
liquid (~> 4.0) |
||||
mercenary (~> 0.3.3) |
||||
pathutil (~> 0.9) |
||||
rouge (>= 1.7, < 4) |
||||
safe_yaml (~> 1.0) |
||||
jekyll-avatar (0.7.0) |
||||
jekyll (>= 3.0, < 5.0) |
||||
jekyll-coffeescript (1.1.1) |
||||
coffee-script (~> 2.2) |
||||
coffee-script-source (~> 1.11.1) |
||||
jekyll-commonmark (1.3.1) |
||||
commonmarker (~> 0.14) |
||||
jekyll (>= 3.7, < 5.0) |
||||
jekyll-commonmark-ghpages (0.1.6) |
||||
commonmarker (~> 0.17.6) |
||||
jekyll-commonmark (~> 1.2) |
||||
rouge (>= 2.0, < 4.0) |
||||
jekyll-default-layout (0.1.4) |
||||
jekyll (~> 3.0) |
||||
jekyll-feed (0.13.0) |
||||
jekyll (>= 3.7, < 5.0) |
||||
jekyll-gist (1.5.0) |
||||
octokit (~> 4.2) |
||||
jekyll-github-metadata (2.13.0) |
||||
jekyll (>= 3.4, < 5.0) |
||||
octokit (~> 4.0, != 4.4.0) |
||||
jekyll-include-cache (0.2.0) |
||||
jekyll (>= 3.7, < 5.0) |
||||
jekyll-mentions (1.5.1) |
||||
html-pipeline (~> 2.3) |
||||
jekyll (>= 3.7, < 5.0) |
||||
jekyll-optional-front-matter (0.3.2) |
||||
jekyll (>= 3.0, < 5.0) |
||||
jekyll-paginate (1.1.0) |
||||
jekyll-readme-index (0.3.0) |
||||
jekyll (>= 3.0, < 5.0) |
||||
jekyll-redirect-from (0.15.0) |
||||
jekyll (>= 3.3, < 5.0) |
||||
jekyll-relative-links (0.6.1) |
||||
jekyll (>= 3.3, < 5.0) |
||||
jekyll-remote-theme (0.4.1) |
||||
addressable (~> 2.0) |
||||
jekyll (>= 3.5, < 5.0) |
||||
rubyzip (>= 1.3.0) |
||||
jekyll-sass-converter (1.5.2) |
||||
sass (~> 3.4) |
||||
jekyll-seo-tag (2.6.1) |
||||
jekyll (>= 3.3, < 5.0) |
||||
jekyll-sitemap (1.4.0) |
||||
jekyll (>= 3.7, < 5.0) |
||||
jekyll-swiss (1.0.0) |
||||
jekyll-theme-architect (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-cayman (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-dinky (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-hacker (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-leap-day (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-merlot (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-midnight (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-minimal (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-modernist (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-primer (0.5.4) |
||||
jekyll (> 3.5, < 5.0) |
||||
jekyll-github-metadata (~> 2.9) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-slate (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-tactile (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-theme-time-machine (0.1.1) |
||||
jekyll (~> 3.5) |
||||
jekyll-seo-tag (~> 2.0) |
||||
jekyll-titles-from-headings (0.5.3) |
||||
jekyll (>= 3.3, < 5.0) |
||||
jekyll-watch (2.2.1) |
||||
listen (~> 3.0) |
||||
jemoji (0.11.1) |
||||
gemoji (~> 3.0) |
||||
html-pipeline (~> 2.2) |
||||
jekyll (>= 3.0, < 5.0) |
||||
kramdown (1.17.0) |
||||
liquid (4.0.3) |
||||
listen (3.2.1) |
||||
rb-fsevent (~> 0.10, >= 0.10.3) |
||||
rb-inotify (~> 0.9, >= 0.9.10) |
||||
mercenary (0.3.6) |
||||
mini_portile2 (2.4.0) |
||||
minima (2.5.1) |
||||
jekyll (>= 3.5, < 5.0) |
||||
jekyll-feed (~> 0.9) |
||||
jekyll-seo-tag (~> 2.1) |
||||
minitest (5.14.1) |
||||
multipart-post (2.1.1) |
||||
nokogiri (1.10.9) |
||||
mini_portile2 (~> 2.4.0) |
||||
octokit (4.18.0) |
||||
faraday (>= 0.9) |
||||
sawyer (~> 0.8.0, >= 0.5.3) |
||||
pathutil (0.16.2) |
||||
forwardable-extended (~> 2.6) |
||||
public_suffix (3.1.1) |
||||
rb-fsevent (0.10.4) |
||||
rb-inotify (0.10.1) |
||||
ffi (~> 1.0) |
||||
rouge (3.19.0) |
||||
ruby-enum (0.8.0) |
||||
i18n |
||||
rubyzip (2.3.0) |
||||
safe_yaml (1.0.5) |
||||
sass (3.7.4) |
||||
sass-listen (~> 4.0.0) |
||||
sass-listen (4.0.0) |
||||
rb-fsevent (~> 0.9, >= 0.9.4) |
||||
rb-inotify (~> 0.9, >= 0.9.7) |
||||
sawyer (0.8.2) |
||||
addressable (>= 2.3.5) |
||||
faraday (> 0.8, < 2.0) |
||||
terminal-table (1.8.0) |
||||
unicode-display_width (~> 1.1, >= 1.1.1) |
||||
thread_safe (0.3.6) |
||||
typhoeus (1.4.0) |
||||
ethon (>= 0.9.0) |
||||
tzinfo (1.2.7) |
||||
thread_safe (~> 0.1) |
||||
unicode-display_width (1.7.0) |
||||
zeitwerk (2.3.0) |
||||
|
||||
PLATFORMS |
||||
ruby |
||||
|
||||
DEPENDENCIES |
||||
github-pages |
||||
jekyll-include-cache |
||||
|
||||
BUNDLED WITH |
||||
2.1.4 |
@ -1,65 +0,0 @@ |
||||
title: Typegoose |
||||
description: > # this means to ignore newlines until a new statement |
||||
Documentation for Typegoose |
||||
baseurl: '/typegoose' |
||||
url: 'https://typegoose.github.io' |
||||
remote_theme: mmistakes/minimal-mistakes |
||||
locale: 'en-US' |
||||
minimal_mistakes_skin: 'default' |
||||
markdown: kramdown |
||||
search: true |
||||
|
||||
collections: |
||||
guides: |
||||
permalink: /:collection/:path/ # its ":path" to use the folders in the url |
||||
output: true |
||||
docs: |
||||
permalink: /:collection/:path/ # its ":path" to use the folders in the url |
||||
output: true |
||||
|
||||
plugins: |
||||
- jekyll-redirect-from |
||||
- jekyll-include-cache |
||||
|
||||
sass: |
||||
style: compressed |
||||
|
||||
include: |
||||
- '*.html' # Needed to include files that start with underscore |
||||
|
||||
defaults: |
||||
- scope: |
||||
path: '_guides' |
||||
type: guides |
||||
values: |
||||
layout: single |
||||
toc: true |
||||
sidebar: |
||||
nav: 'guides' |
||||
- scope: |
||||
path: '_docs' |
||||
type: docs |
||||
values: |
||||
layout: single |
||||
toc: true |
||||
sidebar: |
||||
nav: 'docs' |
||||
|
||||
footer: |
||||
links: |
||||
- label: 'GitHub' |
||||
icon: 'fab fa-fw fa-github' |
||||
url: https://github.com/typegoose/typegoose/ |
||||
|
||||
kramdown: |
||||
input: GFM |
||||
hard_wrap: false |
||||
auto_ids: true |
||||
footnote_nr: 1 |
||||
entity_output: as_char |
||||
toc_levels: 1..6 |
||||
smart_quotes: lsquo,rsquo,ldquo,rdquo |
||||
enable_coderay: false |
||||
|
||||
google: |
||||
search_engine_id: '015943195979718257496:sxuifq7leav' |
@ -1,124 +0,0 @@ |
||||
main: |
||||
- title: 'Guides' |
||||
url: /guides/quick-start-guide |
||||
- title: 'Documentation' |
||||
url: /docs |
||||
- title: 'Changelog' |
||||
url: /changelog |
||||
- title: 'TypeDoc' |
||||
url: /typedoc |
||||
|
||||
# Sidebars |
||||
## Documentation |
||||
docs: |
||||
- title: Start |
||||
children: |
||||
- title: 'Index' |
||||
url: /docs |
||||
- title: 'Virtuals' |
||||
url: /docs/virtuals |
||||
- title: 'Environment Variables' |
||||
url: /docs/environment |
||||
|
||||
- title: Decorators |
||||
children: |
||||
- title: 'Prop' |
||||
url: /docs/decorators/prop |
||||
- title: 'Map Prop' |
||||
url: /docs/decorators/mapProp |
||||
- title: 'Array Prop' |
||||
url: /docs/decorators/arrayProp |
||||
- title: 'Model Options' |
||||
url: /docs/decorators/modelOptions |
||||
- title: 'Hooks' |
||||
url: /docs/decorators/hooks |
||||
- title: 'Indexes' |
||||
url: /docs/decorators/indexes |
||||
- title: 'Plugins' |
||||
url: /docs/decorators/plugins |
||||
- title: 'Query Methods' |
||||
url: /docs/decorators/queryMethod |
||||
|
||||
- title: Functions |
||||
children: |
||||
- title: 'Get Model For Class' |
||||
url: /docs/functions/getModelForClass |
||||
- title: 'Get Class For Document' |
||||
url: /docs/functions/getClassForDocument |
||||
- title: 'Get Class' |
||||
url: /docs/functions/getClass |
||||
- title: 'Build Schema' |
||||
url: /docs/functions/buildSchema |
||||
- title: 'Get Discriminator Model for Class' |
||||
url: /docs/functions/getDiscriminatorModelForClass |
||||
- title: 'Add Model To Typegoose' |
||||
url: /docs/functions/addModelToTypegoose |
||||
- title: 'Delete Models' |
||||
url: /docs/functions/deleteModel |
||||
- title: 'Set Global Options' |
||||
url: /docs/functions/setGlobalOptions |
||||
- title: 'Get Model With String' |
||||
url: /docs/functions/getModelWithString |
||||
- title: 'Get Name For Class' |
||||
url: /docs/functions/getName |
||||
|
||||
- title: TypeGuards |
||||
children: |
||||
- title: 'Is Document' |
||||
url: /docs/functions/typeguards/isDocument |
||||
- title: 'Is Ref-Type' |
||||
url: /docs/functions/typeguards/isRefType |
||||
|
||||
- title: Types |
||||
children: |
||||
- title: 'Document Type' |
||||
url: /docs/types/documentType |
||||
- title: 'Return Model Type' |
||||
url: /docs/types/returnModelType |
||||
- title: 'Ref' |
||||
url: /docs/types/ref |
||||
- title: 'Additional Types' |
||||
url: /docs/types/additional |
||||
|
||||
## Guides |
||||
guides: |
||||
- title: Getting Started |
||||
children: |
||||
- title: 'Quick-Start Guide' |
||||
url: /guides/quick-start-guide/ |
||||
- title: 'Migrate to 6.0.0' |
||||
url: /guides/migrate-to-6/ |
||||
- title: 'Migrate to 7.0.0' |
||||
url: /guides/migrate-to-7/ |
||||
- title: 'FAQ' |
||||
url: /guides/faq |
||||
- title: 'Known Issues' |
||||
url: /guides/known-issues |
||||
- title: 'Deprecation Codes' |
||||
url: /guides/deprecation-codes |
||||
|
||||
- title: Basics |
||||
children: |
||||
- title: 'All the Decorators' |
||||
url: /guides/decorators/ |
||||
- title: 'Motivation' |
||||
url: /guides/motivation/ |
||||
- title: 'Default Classes' |
||||
url: /guides/defaultClasses/ |
||||
|
||||
- title: Advanced |
||||
children: |
||||
- title: 'Custom Types' |
||||
url: /guides/advanced/custom-types |
||||
- title: 'Model with same name' |
||||
url: /guides/advanced/models-with-same-name |
||||
- title: "Typegoose's Logger" # this is a double quotation mark, because otherwise it would parse wrong |
||||
url: /guides/advanced/logger |
||||