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

Create documentation using Processing docs tools #80

Closed
gaocegege opened this issue May 30, 2017 · 13 comments
Closed

Create documentation using Processing docs tools #80

gaocegege opened this issue May 30, 2017 · 13 comments

Comments

@gaocegege
Copy link
Member

gaocegege commented May 30, 2017

Please help migrate documentation from Processing to Processing.R -- pick any function and add a reference page, example, and test!

Detailed instructions here:

ref https://github.com/gaocegege/Processing.R/wiki/Documentation-and-E2E-Test-Generator-Tool

@gaocegege
Copy link
Member Author

@jeremydouglass Maybe we could get some docs or help from the community about how to use those tools.

@jeremydouglass
Copy link
Member

Good idea. There are also multiple tools -- we are starting with public web documentation for beginners. Separately Processing also uses a python / XML / JavaDoc documentation build system do technical documentation.

@gaocegege
Copy link
Member Author

I have created a new repo: https://github.com/Processing-R/Processing.R-docs for documentation.

@gaocegege
Copy link
Member Author

gaocegege commented Jun 5, 2017

FMI: https://github.com/kazimuth/processing-py-site is the web reference site for processing.py

I prefer p5.js doc, and try to fork it 🤔

@gaocegege
Copy link
Member Author

gaocegege commented Jun 5, 2017

ref https://processing-r.github.io/Processing.R-docs/

Tring to generate reference from examples/reference, although it is full of bugs. Documentation is much more difficult than programming. 😪

@gaocegege
Copy link
Member Author

gaocegege commented Jun 6, 2017

I have built a tool to generate docs from examples/reference.

The structure of examples/reference should be:

examples/
  reference/
    <function-name>/
      .property.yml
      <function-name>1/
        <function-name>1.rpde
      <function-name>2/
      ...

The structure of .property.yml, see examples/reference/arc/.property.yml as a example:

category: <category of the functino>
subcategory: <subcategory of the function>
description: <descriptinon of the function>
syntax: <syntax of the function>
parametes:
  - label: <name of the parameter>
    description: <description of the parameter>
  - ...
related:
  - <name of related function>
  - ...

@jeremydouglass
Copy link
Member

Excellent!

If this format endures you should take the notes from this page and put it in a wiki page.

Is the idea to have this eventually move to https://github.com/Processing-R/Processing.R-docs ? Should the examples/reference sketches go there?

@jeremydouglass
Copy link
Member

Is the concept still to integrate the examples with both documentation and unit test cases ( #10 )? Or will they be separate?

How would this integration work if the documentation is in a separate repository?

@gaocegege
Copy link
Member Author

I think the example/references will be in this repo, Processing.R-docs will read from this repo. It needs a parameter which is the location of the source code of Processing.R, then it will find the example/references folder.

@gaocegege
Copy link
Member Author

gaocegege commented Jun 13, 2017

I have invited some friends of me to contribute to Processing.R, so rewrite the first comment and put TODO list here:

Tasks (category):

#131

@jeremydouglass
Copy link
Member

Expanded the instructions above to explain how you know what hasn't been done / where to find it.

@jeremydouglass
Copy link
Member

jeremydouglass commented Jun 15, 2017

Expanded instructions and migrated to wiki page for now -- easier to find and read than in an issue, and we want to keep them even after this issue is closed.

https://github.com/gaocegege/Processing.R/wiki/How-to-document-Processing.R

@gaocegege
Copy link
Member Author

Close via #131

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

2 participants