Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Document Properties Marker
overridefalse
Doctypepropertyhide
Name
documentation-json-uri 
Documentation JSON URI
Short DescriptionThe URI to a JSON document containing the URLs to the documentation for the blueprints.
 

Parent
Parent Property
property-nameName
 

Audience
Name List
doctyperole
propertyAudience
hide
Categories
Name List
doctypecategory
propertyCategories
 

Tags
Name List
doctypetag
propertyTags
 

Identifier
 
documentation-json-uri
Component
Name List
doctypecomponent
propertyComponent
 

Mandatory
 

Data Typestring
 

Default Value
 

Value Range
 

Implementation
 

Iteration
Iteration
valuefilled
hide
Since1.2.0
 

Sort Keyhide
Section
show-titlefalse
titleDescription

The URI to a JSON document containing the URLs to the documentation for the blueprints. By providing such a JSON file with the space property documentation-json-uri template author can provide the documentation for the template (Document Properties Marker Macro) and for the sections (Section Macro) of the templateAuthors then are able to access the documentation by clicking the help button in edit mode.

The help button The format is a JSON map of doctype names as the keys and

Section
titleFormat

The JSON map has the names of the doctypes as the keys. The value is a map of section names with URLs as values.

Only one special value for the section names exists. That is the _default_ key, which is used to provide a URL for the doctype itself

The special key _default_ provides the URL for the doctype itself.

Moreover there is a default mapping that is applied when for a title of a section of a doctype no mapping can be found.

Section
titleHow it works

Here is an example of a short JSON file containing the documentation for the category doctype.

Code Block
{
 "category": {
   "_default_"  :"https://www.smartics.eu/confluence/display/PDAC1/Category",
   "Description":"https://www.smartics.eu/confluence/display/PDAC1/Category#Description",
 }
}

Moreover there is a default mapping that is applied when for a title of a section of a doctype no mapping can be found.

How does it work in detail:

First of all we use the Now lets talk about the _default_ key.

The name of the doctype

- in this example category - to lookup the doctype in the JSON file. Than we make a second lookup, now within the doctype we found in step one, for the title of the section where the user clicked on the help button. In this example you can see only one title for a section: "Description".

and the name of the section determines the URL to use to guide the author to the documentation section.

The default key will be used, when for a given section title (e.g. "Note"

a mapping can not be found. In this case the user will be guided to the value of the default key: here

) there is no mapping in the JSON file. The URL, in this case

https://www.smartics.eu/confluence/display/PDAC1/Category 

But there is more feature for this case (a section title can not be found in the JSON for a given doctype): To the URL of the _default_ key we append the title of the section as an anchor. In our example we would generate the following URL:

 is used to construct the URL to the information on the note section

https://www.smartics.eu/confluence/display/PDAC1/Category#Note

Using this feature it is possible to jump to specific parts of the documentation for a given doctype.

Section
titleExample of Usage

See the documentation of our blueprints: DocumentationMap

We use the following URL https://www.smartics.eu/confluence/download/attachments/12156954/docmap.json?api=v2 as value for documentation-json-uri. This is the permanent URL to the file docmap.json we attached to the page DocumentationMap.

The page that hosts the JSON file is DocumentationMap.

Section
titleCache

The json JSON file, which is referenced by using the space property documentation-json-uri, will be cached by projectdoc for one day. If you need to use the new content you provided in your json JSON file right now you can flush this cache by selecting flush on the confluence Confluence cache management admin page.

For more details please visit the Confluence help page for Cache + Statistics.

To flush the cache: Go to   >  General Configuration  >  Cache Management and flush the cache projectdoc Documentation Cache

...

 
Section
titleRelated Properties

Section
titleNotes

Section
titleReferences

...