Giter VIP home page Giter VIP logo

Comments (8)

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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.

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

mgalloy avatar mgalloy commented on August 27, 2024

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

from idldoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.