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

[DOCS] Create Example Sections #10

Closed
3 of 9 tasks
bobluppes opened this issue May 20, 2023 · 9 comments
Closed
3 of 9 tasks

[DOCS] Create Example Sections #10

bobluppes opened this issue May 20, 2023 · 9 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed no-issue-activity

Comments

@bobluppes
Copy link
Owner

bobluppes commented May 20, 2023

Create Example Sections

This is an open-ended issue and we welcome multiple PRs.

I would like to add a few example sections to the documentation. Each example should be self-contained and should demonstrate a potential usage of the Graaf library.

If you are interested, you can pick an example from the proposals below, or (even better) suggest your own example. The scope of a PR is restricted to a single example.

Definition of Done

Each example should contain the following:

  • A complete and self-contained example under examples/EXAMPLE_NAME/main.cpp.
    • To verify that the example compiles and runs.
    • This can be used to generate any graphics (via dot files) for the public documentation.
    • See the dot serialization example for inspiration.
  • An entry on our public documentation.
    • A short description of the example, what is the use case and why is it typical.
    • A list of the Graaf algorithms and data structures which are demonstrated in the example. Here you can link to the respective algorithms page in the documentation.
    • Code pointers (in the form of code blocks) to the important sections of the example. It is not necessary to cover the entirety of the added main.cpp, but the most important concepts should be captured.
    • Non-trivial parts in the code blocks should be explained in-text.
    • Graphics (i.e. in the form of visualized dot files) can be used. Any graphics should go under `docs/static/img/examples/.
    • Instructions on how to build the documentation locally can be found on the wiki.
    • An example entry can be found here.

Proposed Examples

  • Dot serialization
  • Shortest path (directed graph)
  • Shortest path (undirected graph) [@Hromz]
  • Cycle detection [@Hromz]
  • Social network use case
  • Minimal CNN implementation
  • ...
@bobluppes bobluppes added documentation Improvements or additions to documentation help wanted Extra attention is needed good first issue Good for newcomers labels May 20, 2023
@Hromz
Copy link
Contributor

Hromz commented Jul 25, 2023

Hey @bobluppes, i would like to work on examples for documentation. Can i try?

@bobluppes
Copy link
Owner Author

Hi @Hromz, of course, looking forward to your contribution!

Please note that we have slightly changed the format we use for the examples. There is now a single source file with the example code under examples/YOUR_EXAMPLE_NAME/. Additionally, there is a docusaurus entry explaining it. I have updated this in the original issue and added links to the wiki on how to build and host the documentation locally.

@Hromz
Copy link
Contributor

Hromz commented Aug 1, 2023

Hey @bobluppes, I made PR #47. Can you take a look? Simple example that uses graph traversal and the shortest path. In the future, I will add better examples.

@bobluppes bobluppes changed the title Create example sections [DOCS] Create example sections Aug 6, 2023
@bobluppes bobluppes changed the title [DOCS] Create example sections [DOCS] Create Example Sections Aug 6, 2023
@bobluppes bobluppes pinned this issue Aug 6, 2023
@bobluppes bobluppes unpinned this issue Sep 30, 2023
@bobluppes bobluppes pinned this issue Sep 30, 2023
@Hromz
Copy link
Contributor

Hromz commented Oct 6, 2023

@bobluppes can I work on cycle detection example?

@bobluppes
Copy link
Owner Author

@bobluppes can I work on cycle detection example?

Hi @Hromz, of course! Looking forward to your contribution :)

@arnav1203
Copy link

Hey There. I would like to contribute in your repository so kindly grant me permission to do so.

@bobluppes
Copy link
Owner Author

Hey There. I would like to contribute in your repository so kindly grant me permission to do so.

Hi @arnav1203, welcome to Graaf!
Of course! Would you be interested in working on the social network use case?

@Poornima2003
Copy link

can u plz assign me this issue , I would like to contribute to this issue .

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Stale issue message

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed no-issue-activity
Projects
None yet
Development

No branches or pull requests

4 participants