Giter Site home page Giter Site logo

Add documentation about decompose HOT 24 CLOSED

badoo avatar badoo commented on May 14, 2024
Add documentation

from decompose.

Comments (24)

arkivanov avatar arkivanov commented on May 14, 2024 1

Thanks, now it's more clear. I would like to host docs in the Decompose repository. I could enable GitHub pages for this repository in the settings. Then you could make a PR here with initial setup. Does it sound correct?

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024 1

@plusmobileapps Here is an issue #50 , that would be nice to add to the documentation. I will be happy if you could help with this.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024 1

I see what you are talking about, let me play around with it this weekend and I'll see what I can do about that

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024 1

@arkivanov havent looked at the readme recently and missed that new example. I can add that to the documentation as well.

On the topic of the readme duplicating the docs, I have some ideas to slim that down and will try to get a proposal ready over the weekend when adding the other example.

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024 1

@plusmobileapps Big thanks for your work on documentation, this was very helpful! I think this issue can now be closed.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

Hello @arkivanov! I have just started using Decompose in my KMP project and would like to help create the documentation to better understand the whole framework. I have setup Material MkDocs before for personal use on another project and wondering if that is a suitable tool for documenting Decompose. Let me know how I can help assist and get the documentation started 😄

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

Hi @plusmobileapps , that's sounds good! I also wanted to use GitHub.io, and I like the Material design you are proposing. So I see no reason why we should not use it. So let's start with some initial setup from your side? Then I could add some structure with empty pages. And then we could fill it.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

Alright, so I did some initial setup in this repository and the site is published on GitHub.io at https://plusmobileapps.com/decompose-docs/.

I added just a few tabs porting some of the readme over into the sections. If you wanted to start adding some structure to the documentation and then I can help try to fill out some if its anything I might understand (still pretty new to decompose but would like to learn 😄). The MkDocs Material getting started should help get a developer environment set up.

Then I'm not sure if this repo should be forked under your GitHub account since github.io automatically gets redirected to my custom domain. We would just need to change a couple of things in the mkdocs.yml file on that repo to point to the new site.

In the meantime I'm going to figure out how to automate the generation with GitHub Actions anytime the main branch is updated.

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

I thought we can use GitHub pages for this. Like I have this for MVIKotlin: https://arkivanov.github.io/MVIKotlin/

Can we apply material theme there, or is it a different thing?

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

MkDocs looks more complex, like you need to install something etc.
Also why do you think we need some automation? Generating reference docs from KDocs?

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

Yes, GitHub Pages is being used to host the website. Sorry if there is confusion because I use GitHub Pages for my personal plusmobileapps.github.io with a custom domain, it seems to also use my custom domain for hosting other projects. So if you actually go to http://plusmobileapps.github.io/decompose-docs/, it just redirects to the custom domain which is why I was wondering if it made sense to have you fork the documentation repository so the domain would be https://arkivanov.github.io/decompose-docs. But it sounds like you were wanting to have the documentation live inside of the decompose GitHub under the docs folder so that it could have the domain: https://arkivanov.github.io/Decompose?

The automation was just when someone merges something into the main branch, it could pull the dependencies needed to generate the site and deploy to the gh-pages branch as opposed to having someone manually run this script themselves. Found out the repo already had a script to do this when the main branch has a commit pushed so no further action would be needed.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

Alright @arkivanov, I created a pull request that sets up Material MkDocs in the repository and the site should be https://arkivanov.github.io/Decompose after it is merged.~~

I got it working in my fork by testing going to https://plusmobileapps.github.io/Decompose/ after the changes were merged into my fork's master branch. Keep in mind from my note prior, if you test that link it will redirect to my custom domain but that should not happen when merged into the main repository.

In reference to one of your points earlier:

MkDocs looks more complex, like you need to install something etc.

If you want to build locally and see what it looks, you would need to download the docker image or install the python dependencies in order to run it. I didn't think that it was too complicated after going through the getting started page, but open to other suggestions as Material MkDocs was just something I have used in the past for documentation

Update

I created a new pull request that cleaned up everything to get the bare minimum added to the repository.

I also wrote some instructions for running the server locally with docker that seemed simple to do with a couple commands.

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

Thanks, I will check!

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

@plusmobileapps Thanks for #34. So it is merged, but there is no gh-pages branch to select in the settings. Should I create it?

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

@arkivanov awesome that got merged! It takes a couple minutes once merged for the GitHub Action script to fully run and deploy to the gh-pages branch. I see the branch got generated now here, so you should just need to go into the settings of the repository like in this comment to enable the GitHub Pages site.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

BTW, if you are ever wanting to see the status of the workflows that deploy the documentation then you can look under the actions tab of the repository at this job

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

Thanks! I set it. Did not know that we need to wait for the job before the branch is created.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

No worries, it is that job which will push the deployment to that branch. Well I see it is working now if you go to https://arkivanov.github.io/Decompose/ ! What else can I do to help with the documentation?

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

Thanks again! Now I need to get my head around of what should be the structure and content of the documentaion. I will get back if I need more help.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 14, 2024

I will take a look at that @arkivanov and see what I can come up with. Might have a couple questions for that issue to make sure I can document it correctly.

On a side note, since the GitHub Pages site is now up, should we update the GitHub repository to reflect the documentation website in the top right corner so it is easily accessible? Would obviously replace that link with the https://arkivanov.github.io/Decompose/

Screen Shot 2021-01-24 at 13 34 27

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

should we update the GitHub repository to reflect the documentation website

Updated, thanks for pointing on that!

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

@plusmobileapps when we open Https://arkivanov.github.io/decompose and tap on the menu drawer button, the Overview section is already selected. So you need to tap Back to see the main menu. It is quite confusing. Can make the main menu initial?

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

@plusmobileapps thanks for you contribution! World be good if you add the new sample to the documentation (Sample Greetings App), please see the readme.

from decompose.

arkivanov avatar arkivanov commented on May 14, 2024

Also the readme is just duplicate of the documentation, would be good to somehow reduce its size by keeping only important information. If you have some ideas and want to contribute, feel free to submit a PR!

from decompose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.