Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve rst markup support #5

Open
mgalloy opened this issue Oct 22, 2012 · 8 comments
Open

Improve rst markup support #5

mgalloy opened this issue Oct 22, 2012 · 8 comments

Comments

@mgalloy
Copy link
Owner

mgalloy commented Oct 22, 2012

The rst markup was only partly implemented for IDLdoc 3.0. Missing markup that should be implemented:

  * lists (numbered, bulleted, and definition)
  * *emphasis* and **bold**
  * inline ``code``
  * links: single word and phrase links (HTML and internal links)
  * images
  * tables

There is other markup that is not as important for header documentation that could also be implemented for a separate ticket later.
@ghost ghost assigned mgalloy Oct 22, 2012
@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

Changeset r481 adds images to rst markup and links should be easy now.

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

Author: mpiper
I'd like to ask for an enhancement to the rst form for the '''Examples''' tag.
I'd like this form:

; :Examples:
;   IDL> ; A comment
;   IDL> foo

to place pre tags (or use a monospaced font with line breaks) around the example code in the output, like this:

=== Examples ===

IDL> ; A comment
IDL> foo

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

So, you mean

; :Examples:
;    Try this example::
;
;       IDL> ; A comment
;       IDL> foo

is too wordy? I'm not sure I want the Examples section to not have any "regular" text. For example, I could have an Examples section that has some explanation in it:

; :Examples:
;    Run the main-level program at the end of this file for an example of using MG_THEMERIVER::
; 
;       IDL> .run mg_themeriver
; 
;    This should produce a result like .. image:: themeriver.png

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

Author: mpiper
Aha! I didn't read the documentation carefully enough -- I now see how the double colon works.

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

Replying to [comment:7 mpiper]:

Aha! I didn't read the documentation carefully enough -- I now see how the double colon works.

The IDL format does do that since there is no double colon markup; everything in the EXAMPLE section is treated as code.

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

Also, add special text in backticks, i.e., routine. Maybe this looks up in the index and makes a link to it?

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

r642 adds three levels of heading for rst markup (particularly useful in overviews, .idldoc files, directory overviews, and file comments).

@mgalloy
Copy link
Owner Author

mgalloy commented Oct 22, 2012

r652 adds some basic links. Uses "my_routine" and "text http://michaelgalloy.com" notation with backticks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant