gsohler / openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller
https://www.openscad.org
Other
26 stars 7 forks source link

Walkthrough - Documentation #1

Closed e-august closed 1 year ago

e-august commented 1 year ago

Hi, I found this page in twitter some weeks back. Great thing to use openscad with python. Is there some documentation on the additional functions ?

Matthieu-LAURENT39 commented 1 year ago

@gsohler i wouldn't mind writing some docs, but do you know where i could write it?

gsohler commented 1 year ago

Hi Matthieu, this is great because I am very bad at starting documentation. Of course i can fine-tune documentation add details, but starting it is quite a hurdle to me. I don't know the best place to put the documentation, but it need to be a place where many interested people can read and find it. This could be maybe my the "Documentation" tab in my gsohler/openscad repository, maybe my homepage where i advertize python enabled openscad or even completly other options like youtube-videos, but of course this is even more beyond my scope.

Relevant topic which are important to me when documenting is that the aim is to have a 1:1 function name and parameter name match between SCAD and python.(and there is output function and there is os_import function as import keyword is reserved) and each pyopenscad variable can act as a python dictionary to store and retrieve data. i believe this feature is important when crerating libraries from pyopenscad(relative object positioning) i will grant you access to yet another repo ...

Matthieu-LAURENT39 commented 1 year ago

I think it would be nice to use markdown for documentation, as it's easily portable later on. In particular, we could use it with MkDocs, so that you could have a copy on your website that you can easily link to. We'd need to store the documentation in another repo though

gsohler commented 1 year ago

Just did a small tutorial on mkdocs and it looks promising. I like that it automatically updates the web page when the source file change. I am just wondering, what's the right theme. Ideally it should be a theme which supports lots of example python codes and many impressive resulting pictures. the theme should not be rather colorful, appealing rather than grayish and boring. Do you have a special recommendation ?

Matthieu-LAURENT39 commented 1 year ago

The readthedocs theme is builtin, looks pretty good and is very familiar to python user since it's based on, well, readthedocs

gsohler commented 1 year ago

Can we Go with the readthedocs Theme ? It appears to be a very good choice.

On Saturday, August 5, 2023, Matthieu LAURENT @.***> wrote:

The readthedocs theme is builtin, looks pretty good and is very familiar to python user since it's based on, well, readthedocs

— Reply to this email directly, view it on GitHub https://github.com/gsohler/openscad/issues/1#issuecomment-1666500729, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCO4MUURDTYP6DMDJOCHZ3XTZAE7ANCNFSM6AAAAAAZGMBO7M . You are receiving this because you were mentioned.Message ID: @.***>

-- Null

gsohler commented 1 year ago

I am wondering if there exists already a repo to store the documention, if we can reuse the openscad_web or its better to have a different one...

Matthieu-LAURENT39 commented 1 year ago

It's probably best to reuse the openscad_web repo, so that we can easily host the doc on your website

gsohler commented 1 year ago

My preference ;) I have already added some mkdocs staffolding to the page. watch out for update.php

Matthieu-LAURENT39 commented 1 year ago

Nice, i won't be home this week, but i'll add some documentation later (or this week if i have time)

gsohler commented 1 year ago

I will spend vacation in hot spain until september. probably i will not be able to commit code but I am curious, what will happen ...

gsohler commented 1 year ago

seems your focus has changed. again: thank you for all your contributions!

Matthieu-LAURENT39 commented 1 year ago

Woops, i actually wrote the documentation a few weeks ago, and i thought i made a PR to ask to merge it, but it turns out i completely forgot that last part :sweat_smile: I just made a PR on the openscad_web repo

gsohler commented 1 year ago

Hi Matthieu,

Haha, this sounds funny. I am glad that I used to have timeouts in my life. Did not look into your additions yet, this is the next step but I am confident it will be more valuable than my 5 sentences of skeleton code 😂 I will let you know ...

On Wed, Sep 6, 2023 at 1:10 AM Matthieu LAURENT @.***> wrote:

Woops, i actually wrote the documentation a few weeks ago, and i thought i made a PR to ask to merge it, but it turns out i completely forgot that last part 😅 I just made a PR on the openscad_web repo

— Reply to this email directly, view it on GitHub https://github.com/gsohler/openscad/issues/1#issuecomment-1707425165, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCO4MW77N427VIU74SK6NDXY6WPVANCNFSM6AAAAAAZGMBO7M . You are receiving this because you were mentioned.Message ID: @.***>

gsohler commented 1 year ago

Matthieu, your work is online and its a great start! I have already done some tiny edits and additions and still many ideas ... BTW: I added you as a collaborator in openscad_web, so there is no need to create a PR. Just push if you like ....

e-august commented 1 year ago

Great stuff and easy to understand. Today I did my pythonized chess board. I tried the path_extrude from the examples but it fails. Do I miss something ?

gsohler commented 1 year ago

Hi e-august. Right now path_extrude is not in included in the pyton-openscad windows installer as its python-pr3 compiled. I will work on providing a installer with the full function set advertised in my homepage soon