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

Create an example for a component (Python) #743

Open
9 of 28 tasks
niccokunzmann opened this issue Nov 11, 2024 · 4 comments
Open
9 of 28 tasks

Create an example for a component (Python) #743

niccokunzmann opened this issue Nov 11, 2024 · 4 comments
Labels
doc good first issue hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/

Comments

@niccokunzmann
Copy link
Member

niccokunzmann commented Nov 11, 2024

To enhance the documentation, it is nice to have examples!

  • Todo
    • add src/icalendar/tests/todos/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py
  • Journal
    • add src/icalendar/tests/journals/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py
  • FreeBusy
    • add src/icalendar/tests/freebusy/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py
  • Alarm
    • add src/icalendar/tests/alarms/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py
  • Event
    • add src/icalendar/tests/events/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py
  • Calendar
    • add src/icalendar/tests/calendars/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py
  • Timezone
    • add src/icalendar/tests/timezones/example.ics (or a different name)
    • add example() method with default
    • show how to use the example in the class docstring
    • test in src/icalendar/tests/test_examples.py

This is an issue for beginners.
Please open a Pull Request to let us know you are working on it or ask below if you need any help!
A pull request should address at least one item in the list above. No need to do all at once.

Please also have a look at:

@niccokunzmann niccokunzmann added doc good first issue hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/ labels Nov 11, 2024
@prakrit55
Copy link

@niccokunzmann, I want to give it a try

@niccokunzmann
Copy link
Member Author

@prakrit55 thanks, yes you are very welcome to! Let me know if you need anything. There is no need to solve all of this at once.

@prakrit55
Copy link

@niccokunzmann, do we need to create the class Docstring

@niccokunzmann
Copy link
Member Author

niccokunzmann commented Nov 28, 2024

For a pull request for this issue, it is enough to solve one of these many points. Some of them refer to the class doc string. You can focus on others first if you like, e.g. create an example.ics. Also if you create a Pull Request as soon as possible, we can discuss it there, too.
To solve the whole issue in the end, the class doc string is required.

Could I answer your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc good first issue hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/
Projects
None yet
Development

No branches or pull requests

2 participants