Converting Silo's docs from FrameMaker to What? reStructuredText, Markdown, ... #240
Replies: 6 comments 11 replies
-
@cyrush if you have a moment and any thoughts you'd be willing to share regarding either anything I am missing in thinking about this or in what you think best approaches are, that would be great. |
Beta Was this translation helpful? Give feedback.
-
Capturing part of a conversion script here...
|
Beta Was this translation helpful? Give feedback.
-
I have started the work in the
|
Beta Was this translation helpful? Give feedback.
-
Pick a ghpages theme..
|
Beta Was this translation helpful? Give feedback.
-
Ok, got markdown to render on RTD too. |
Beta Was this translation helpful? Give feedback.
-
I have an solution for producing the PDF from the markdown. It results in a PDF file size that is 10x what I would expect (and what I've had in the past) and I don't get bookmarks for each function so I still need to figure those issues out.
|
Beta Was this translation helpful? Give feedback.
-
I am investigating converting Silo's FrameMaker API reference manual to something better that supports docs-like-code workflow. The two I am most familiar with are reStructuredText and Markdown. I've used both (though not so much for API reference documentation) and prefer Markdown because its simpler. But, am open to suggestions at this point too.
Some of the key considerations...
.md
file for each of the main chapters (API sections) in the manual.file://
URL<iframe>
but there is no include directive in Markdown I don't think like there is in reStructuredText.
to table header to force spacing.Below, I've manually converted two functions in the API reference manual to Markdown. They look pretty good to me. You can compare to the current FrameMaker results for
DBErrfuncname
andDBShowErrors
.DBErrfuncname
— Get name of error-generating functionSynopsis:
Fortran Equivalent:
Returns:
A
char const *
containing the name of the function that generated the last error. This call cannot fail.Description:
The DBErrfuncname function is used to find the name of the function that generated the last Silo error. It is implemented as a macro.
DBShowErrors
— Set the error reporting mode.Synopsis:
Fortran Equivalent:
Arguments:
level
: Error reporting level. One ofDB_ALL
,DB_ABORT
,DB_TOP
, orDB_NONE
.Adding some extra text here to see how it handles this in a bulleted list.
func
: Function pointer to an error-handling function.Returns:
Returns nothing (
void
). It cannot fail.Description:
The DBShowErrors function sets the level of error reporting done by Silo when it encounters an error.
The following table describes the action taken upon error for different values of level.
Ordinarily, error reporting from the HDF5 library is disabled.
However,
DBShowErrors
also influences the behavior of error reporting from the HDF5 library.DB_ALL
DB_ALL_AND_DRVR
DB_ALL
execpt also show error messages generated by the underlying driver library (PDB or HDF5).DB_ABORT
DB_ALL
except abort is called after the error message is printed.DB_TOP
DB_NONE
Beta Was this translation helpful? Give feedback.
All reactions