Skip to content

Where do I put examples and refer them from /docs/source/? #71

Description

@vstadnytskyi

I have figured out that you can have examples in the docstring, by adding a line.

.. plot:: examples/numerical_bin_data.py
           :include-source:

This is a very nice way to create good documentation. However, it requires to run a script which creates a figure. I decided to put the script in the /examples/ folder. I put /examples/ into docs/source/examples/. However, It would be nice to have examples in the home directory. It will be easier to find and easier to refer to. Is there a way to put /examples/ in the home directory and refer to them from files down the tree?

Here is the link to documentation generated with a plot build in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions