Utils.ExternalFiles
class Utils.ExternalFiles
Method Inventory
- CleanupCSPDocBook()
- CollectPDFs()
- CopyChangeDocINTERNALNEW()
- CopyExternalDir()
- CopyRelNotesAndChangeDoc()
- DeleteImages()
- DeletePDFs()
- DeleteRelNotes()
- DisplayCSPDocBook()
- GeneratePDFIndex()
- MakePDFCollector()
- RemoveAllExternalFiles()
- RemoveCSPDocBookSubdir()
- UseAll()
- UseExternalDirs()
Methods
classmethod CleanupCSPDocBook(verbose As %Boolean = 0)
Removes directories of $$$DEFAULTWEBAPPDIR other than algolia, changes, doctypes, history, images, pdfs, and relnotes.
This is meant to remove the directories added as external HTML,
so that we can cleanly refresh just those files.
Generates an index file (for PDFs), given the current path; writes this to DocBookMgr/Indexes.
If CopyPDFs, this method copies PDFs from Perforce locations into
$system.Util.InstallDirectory()_$$$DEFAULTWEBAPPDIR_"pdfs/pdfs" and also copies the index file there,
appropriately named.
The "Perforce locations" use the current search path and our long-standing directory
organization conventions.
classmethod CopyChangeDocINTERNALNEW(verbose As %Boolean = 0)
classmethod CopyExternalDir(sourcedir As %String = "", targetdir As %String = "", verbose As %Boolean = 0)
sourcedir is a fully qualified directory name and
targetdir is the name of a subdirectory within $$$DEFAULTWEBAPPDIR
classmethod DeleteImages(verbose As %Boolean)
classmethod DeletePDFs(verbose As %Boolean)
classmethod DeleteRelNotes(verbose As %Boolean)
classmethod DisplayCSPDocBook(verbose As %Boolean = 1)
Called by CollectPDFs.
Generates an index for the PDF files and writes it into
$system.Util.InstallDirectory()_"DocBookManager/Indexes"
If copyIndex, this also copies the file (as index.html) into
$system.Util.InstallDirectory()_$$$DEFAULTWEBAPPDIR_"pdfs/".
In both cases, the necessary CSS and logo files are also included
in the index file's destination.
classmethod MakePDFCollector(verbose As %Boolean = 1)
For use by ^website routine.
Generates a .bat file that copies PDFs from Perforce locations into a subdirectory of the directory
in which you run this .bat file.
The "Perforce locations" use the current search path and our long-standing directory organization conventions.
classmethod RemoveAllExternalFiles(verbose As %Boolean)
Removes directories of $$$DEFAULTWEBAPPDIR other than algolia and doctypes.
given the short name of a subdirectory within install-dir/$$$DEFAULTWEBAPPDIR, this
method deletes that directory and all its contents.
There is no effect if the given name is null.
classmethod UseAll(verbose As %Boolean = 0)
used by load all methods
Use with rebranded external files, indicated in the relinfo file.
This method copies the HTML files into $$$DEFAULTWEBAPPDIR.