Back to Home

Extending the built-in documentation in the Caché DBMS / InterSystems Blog

sub Caché · docbook · intersystems cache · cache · dbms

Extending the built-in documentation in the Caché DBMS



    Caché DBMS has the ability to embed its materials in standard documentation using the methods of the DocBook.Utils class .
    Thus, you can create your own corporate documentation with easy navigation and advanced search on it.

    Since the built-in documentation is based on the DocBook v4.0 standard, it is possible to convert it to other formats: HTML, PDF, RTF, etc.
    In Russian, you can read about DocBook, for example, here:
    Why DocBook?
    DocBook Short.

    udev.zip is a file with an example article repeating the " Developer Corner ".

    Steps to install and open the sample article:
    1. launch the Caché terminal and go to the “DOCBOOK” area:
      zn "DOCBOOK"
    2. run the command:
      do ##class(DocBook.Utils).Load("C:\Articles\UDEV.xml")
      Note: Your file path may be different;
    3. open your local online documentation in your browser and find the downloaded article in the " Technical Articles " section .

    Screenshots of the article in the documentation portal:

    image
    enlarge

    image
    enlarge

    Fans of embedded documentation in their native language


    If there is enthusiasm and time, then you can do it yourself with your own forces.

    This will require:
    1. in the terminal go to the "DOCBOOK" area:
      zn "DOCBOOK"
    2. export all existing books and articles to the specified directory:
      do ##class(DocBook.Utils).XMLExportAll("C:\XMLDOC",1)
      Note: Your catalog may be different;
    3. actually translate the contents of the generated files;
    4. import everything from the given directory back:
      do ##class(DocBook.Utils).LoadDir("C:\XMLDOC")

    Screenshots of the Russified documentation:

    image
    increase

    image
    increase

    image
    increase

    PS: for convenient development and publication of documentation, you may need the Arbortext product, which is used in InterSystems itself:
    www.ptc.com/products/arbortext (English)
    www.pro-technologies.ru/product/ Arbortext (Russian)

    Read Next