Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Contribution guide #4557

Merged
merged 23 commits into from
Feb 28, 2022
Merged

Contribution guide #4557

merged 23 commits into from
Feb 28, 2022

Conversation

ultmaster
Copy link
Contributor

If you have any questions on how to contribute, please let me know. I'll try to enrich the contents in this PR.

@QuanluZhang
Copy link
Contributor

@ultmaster @J-shang merge to the doc branch or master branch?

* We recommend documenting all the methods and classes in your code. Follow `NumPy Docstring Style <https://numpydoc.readthedocs.io/en/latest/format.html>`__ for Python Docstring Conventions.

* For function docstring, **description**, **Parameters**, and **Returns** are mandatory.
* For class docstring, **description**, **Attributes** are mandatory. The parameters of ``__init__`` should be documented in the docstring of docs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the meaning of "docstring of docs"?


.. tip:: The syntax to write a "notebook styled python file" is very simple. In essence, you only need to write a slightly well formatted python file. Here is a useful guide of `how to structure your Python scripts for Sphinx-Gallery <https://sphinx-gallery.github.io/stable/syntax.html>`_.

2. Put the tutorials into ``docs/source/tutorials.rst``. You should add it it both ``toctree``, which makes it appear in the sidebar content table, and ``cardlinkitem``, and specify the appropriate ``header``, ``description``, ``link``, ``image``, ``background`` (for image) and ``tags``.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"it it both "?


To contribute a new tutorial, here are the steps to follow:

1. Create a notebook styled python file. If you want it executed while inserted into documentation, save the file under ``examples/tutorials/``. If your tutorial contains other auxiliary scripts which are not intended to be included into documentation, save them under ``examples/tutorials/scripts/``.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to add a reference link to examples/tutorials, so that users can easily find complete examples there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's necessary for "developers". They can easily find them in their cloned repo. We don't need to point to a possibly-outdated github address.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you imply that we should no use github address anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use them when we want to guide customers to read the repo on GitHub website.

@ultmaster
Copy link
Contributor Author

@ultmaster @J-shang merge to the doc branch or master branch?

I don't think it's very meaningful to have a doc branch at this point. Let's use the master branch.

@J-shang
Copy link
Contributor

J-shang commented Feb 22, 2022

Docs like How to customize a tuner are contribution guides?

@QuanluZhang
Copy link
Contributor

Docs like How to customize a tuner are contribution guides?

I don't think so, I think it is our provided feature

@J-shang
Copy link
Contributor

J-shang commented Feb 22, 2022

Docs like How to customize a tuner are contribution guides?

I don't think so, I think it is our provided feature

got it

@@ -103,21 +83,3 @@ Automatic Feature Engineering
Automatic feature engineering is for users to find the best features for their tasks. A detailed description of automatic feature engineering and its usage can be found `here <FeatureEngineering/Overview.rst>`__. It is supported through NNI trial SDK, which means you do not have to create an NNI experiment. Instead, simply import a built-in auto-feature-engineering algorithm in your trial code and directly run your trial code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is "here <FeatureEngineering/Overview.rst>__." this syntax still work?

Copy link
Contributor

@J-shang J-shang Feb 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find .rst can't work, here <FeatureEngineering/Overview.html>__. can work...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another style is like this
image
@ultmaster we should provide guideline for it

@J-shang J-shang mentioned this pull request Feb 25, 2022
13 tasks
@ultmaster ultmaster merged commit 0502e2d into microsoft:master Feb 28, 2022
@J-shang J-shang mentioned this pull request Mar 23, 2022
51 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants