Menu

Contributing to Asymptote

Help
2023-03-08
2023-03-08
  • Alan Bromborsky

    Alan Bromborsky - 2023-03-08

    Is there a write up on how to contribute to Asymptote (asy code) and how contributions should be documented outside of commenting the code (multi line comments would help here).

    Did you ever consider using Sphinx to document the Asymptote software package or applying to the Google summer of docs -

    https://opensource.googleblog.com/2022/02/Announcing%20Season%20of%20Docs%202022.html

     
  • Jamie

    Jamie - 2023-03-08

    For contribution guidelines, we do not have yet a contribution guidelines though we do have style guides (for example, no spaces between assignment (int something=100; as opposed to int something = 100;).

    As for asymptote documentation, I have proprosed earlier doxygen/javadoc-style comments (and perhaps with the ability to integrate with the language server protocol) - for example,

    /**
     * Draws something
     * @param size Size of the figure to draw
     * @param startingPoint Where to draw the figure
     */
    void drawAFigure(real size, pair startingPoint)
    

    though nothing has come out of it yet, and there has been disagreements on where to put the documentation.

     
    • Alan Bromborsky

      Alan Bromborsky - 2023-03-08

      Is this the sort of thing you were thinking about (It was done using
      Sphinx) -

      https://galgebra.readthedocs.io/en/latest/

      I wrote the original code but was not comfortable using Sphinx (All the
      documentation I wrote was in LaTeX) so the code was taken over by
      geometric algebra enthusiasts at Cambridge University and they are the
      ones the wrote the online documentation (in addition to improving the code).

      On 3/8/23 1:31 PM, Jamie wrote:

      For contribution guidelines, we do not have yet a contribution
      guidelines though we do have style guides (for example, no spaces
      between assignment (|int something=100;| as opposed to |int something
      = 100;|).

      As for asymptote documentation, I have proprosed earlier
      doxygen/javadoc-style comments (and perhaps with the ability to
      integrate with the language server protocol) - for example,

      |/ Drawssomething @paramsizeSizeofthefiguretodraw
      @paramstartingPointWheretodrawthefigure /
      voiddrawAFigure(realsize,pairstartingPoint) |

      though nothing has come out of it yet, and there has been
      disagreements on where to put the documentation.


      Contributing to Asymptote
      https://sourceforge.net/p/asymptote/discussion/409349/thread/3724437631/?limit=25#d2e1


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/asymptote/discussion/409349/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.