fumiama / go-docx

One of the most functional libraries to partially read and write .docx files (a.k.a. Microsoft Word documents or ECMA-376 Office Open XML) in Go.
GNU Affero General Public License v3.0
146 stars 24 forks source link

Documentation: Add documentation for different use cases and examples #11

Open junwen-k opened 1 year ago

junwen-k commented 1 year ago

A good open source library cannot go without a good documentation!

Suggest to add in documentation for different use cases and examples. A good starting point could be based on the existing features:

  1. Text
  2. Image
  3. Table
  4. Shape
  5. Canvas
  6. Group

Maybe it can also be linked back to Microsoft OpenXML's documentation for easier references.

Easier way to get started is by directly writing into the repository's README file but it could get cluttered real quick.

Perhaps having a Nextra documentation site would be helpful. https://nextra.site/docs/docs-theme/start

fumiama commented 1 year ago

That's a good idea and we can use github wiki as the extra documentation site. I'll be going on it as soon as I'm free. Anyone who is interested in this project can also help us to improve the documentation by PR or opening issues.

lordofscripts commented 6 months ago

I agree that documentation is required, otherwise what's the use of it?

dcharles525 commented 1 month ago

I want to take this on, as I have largely documented a lot of the functions in my own project. @fumiama Any particular format you're looking for? I was going to start with a Markdown file with documentation and short examples. Then add it to the wiki.

fumiama commented 1 month ago

I want to take this on, as I have largely documented a lot of the functions in my own project. @fumiama Any particular format you're looking for? I was going to start with a Markdown file with documentation and short examples. Then add it to the wiki.

Thanks so much for your effort. Maybe we can start from adding the comments embedded in .go files. It supports some simple markdown grammars and will show the help of a certain function or variable in IDE when the mouse hovers.

As these are just some simple descriptions, for the sdvanced usage, we can open a wiki page or create some md files in doc folder. Of course some example codes are acceptable. It can be put in example folder.