Added
Creates pipeline transformation functions for quantum-version. This function takes the config for configuring quantum version, and returns a function for transforming pages (a FileTransform ).
@versionedPage
@version 2.0.0
@api
@function myFunction
@added 2.0.0
@description
The content of the description block will be shown in the api
section.
@arg a [Number]
@arg b [number]
@return Number
@versionedPage
@version 2.0.0
@api
@function myFunction
@removed 2.0.0
@description
The content of the description block will be shown in the api
section.
@arg a [Number]
@arg b [number]
@return Number
deprecated
tag will sit before a @removed
tag. @versionedPage
@version 2.0.0
@api
@function myFunction
@deprecated 2.0.0
@description
The content of the description block will be shown in the api
section.
@arg a [Number]
@arg b [number]
@return Number
@versionedPage
@version 2.0.0
@api
@function myFunction
@updated 2.0.0
@description
The content of the description block will be shown in the api
section.
@arg a [Number]
@arg b [number]
@return Number
fileTransform
. Any pages without this entity will pass through the version file transform untouched. version.fileTransform()
in the quantum.config.json
.
@versionedPage
@versionedPage
@version 1.0.0
@version 1.1.0
@version 1.2.0
@version 1.2.1
@version 1.3.0
@version 2.0.0
@versionedPage
@inline ./versions.um
@version 1.0.0
@version 1.1.0
@version 1.2.0
@version 1.2.1
@version 1.3.0
@version 2.0.0
@versionedPage
@version 1.0.0
@version 1.1.0
@version 2.0.0
@versioned
@version 1.0.0: Description 1
@version 2.0.0: Description 2
Description 1
Description 1
Description 2
@versionedPage
@version 1.0.0
@version 1.1.0
@version 2.0.0
@versionList
@versionList
@version 1.0.0
@version 1.1.0
@version 2.0.0
@current 1.0.0
@versionList
@version 1.0.0
@version 1.1.0
@version 2.0.0
@current 1.1.0
@versionList
@version 1.0.0
@version 1.1.0
@version 2.0.0
@current 2.0.0
@added
and @removed
tags for the version specified. @updated
and @deprecated
tags are removed if they do not apply to the version passed in. @versioned
sections in the entity passed in. This removes all @versioned
sections from the entity (recursively) and replaces then with the correct content for the version given. const version = require('quantum-version')
const entity = {
params: [],
content: [
{
type: 'versioned',
params: [],
content: [
{
type: 'version',
params: ['0.1.0'],
content: [
"Content1"
]
},
{
type: 'version',
params: ['0.3.0'],
content: [
"Content2"
]
}
]
}
]
}
const versions = ['0.1.0', '0.2.0', '0.3.0']
version.processVersioned(entity, '0.1.0', versions)
console.log(entity)
// { params: [], content: ['Content1'] }
version.processVersioned(entity, '0.2.0', versions)
console.log(entity)
// { params: [], content: ['Content1'] }
version.processVersioned(entity, '0.3.0', versions)
console.log(entity)
// { params: [], content: ['Content2'] }
@versionList
entities in the entity passed in (recursively), and populates them with the full list of versions for the page, as well as the current version. @versionedPage
@version 1.0.0
@version 1.1.0
@version 2.0.0
@versionList
@versionList
@version 1.0.0
@version 1.1.0
@version 2.0.0
@current 1.0.0
@versionList
@version 1.0.0
@version 1.1.0
@version 2.0.0
@current 1.1.0
@versionList
@version 1.0.0
@version 1.1.0
@version 2.0.0
@current 2.0.0