Skip to content

Move tutorials out of main repo into their own repository #2878

@MyreMylar

Description

@MyreMylar
Member

There has been some debate recently about slimming down the main repository into some smaller packages for various reasons. One area I think that could really benefit from this is the existing tutorials section of the docs.

We have some fairly old text based tutorials, mixed with a few more recent ones bundled awkwardly in our docs. We also have a couple of these tutorials translated into different languages and one current PR with another set of translations. The main docs have no way of cleanly switching the language, and never will because it would be impossible for a project with our resources to keep code documentation up to date with changes in multiple languages.

However, a separate tutorials repository with it's own sphinx build could do this:
image

This repository could also potentially guide the modernising of the tutorials into the video era of the web (there was no such thing as youtube when many of the pygame tutorials were first written).

I added an issue on this topic to the website repository too as that's where the output from the proposed new tutorials repository would be hosted under the current 'tutorials' link from the main page:

image

Activity

robertpfeiffer

robertpfeiffer commented on May 27, 2024

@robertpfeiffer
Contributor

As a guy who has bugged you about this in private DMs:

  • I think we should have more example code
  • I think we should have fewer examples in the main repo
  • I think we should distinguish between "software architecture" (how to load levels and unit types from xml files), "feature demonstrations" (how to use flood fill) and "gameplay examples" (how to make your animations/game feel punchy)
Gabryel-lima

Gabryel-lima commented on May 27, 2024

@Gabryel-lima

There has been some debate recently about slimming down the main repository into some smaller packages for various reasons. One area I think that could really benefit from this is the existing tutorials section of the docs.

We have some fairly old text based tutorials, mixed with a few more recent ones bundled awkwardly in our docs. We also have a couple of these tutorials translated into different languages and one current PR with another set of translations. The main docs have no way of cleanly switching the language, and never will because it would be impossible for a project with our resources to keep code documentation up to date with changes in multiple languages.

However, a separate tutorials repository with it's own sphinx build could do this: image

This repository could also potentially guide the modernising of the tutorials into the video era of the web (there was no such thing as youtube when many of the pygame tutorials were first written).

I added an issue on this topic to the website repository too as that's where the output from the proposed new tutorials repository would be hosted under the current 'tutorials' link from the main page:

image

Yes, much better!

Starbuck5

Starbuck5 commented on May 31, 2024

@Starbuck5
Member

I'm skeptical of the benefit of moving them out into a separate repository.

If we have outdated tutorials rotting in the main repository, moving them into another repository just lets them rot in a different place? A place that's even less likely to have eyes on it?

RE examples, anybody can post examples on Github, there have been several projects. Like https://github.com/pygame-examples/pygame-examples

andrewhong04

andrewhong04 commented on May 31, 2024

@andrewhong04
Member

I'd say that we should make every example that's been well thought-out like aliens.py to be in their own separate repository such as https://github.com/pygame-community/pygame-aliens.git and remove smaller examples such as go_over_there.py

If we would like to take from example...

Monogame has separate repositories for their examples:

As well as Godot Engine:

As well as raylib:

But not heaps.io, the game engine powering Dead Cells

andrewhong04

andrewhong04 commented on May 31, 2024

@andrewhong04
Member

Looking at the crude webpage I made almost a year ago makes me uneasy.. lol

Gabryel-lima

Gabryel-lima commented on Jun 5, 2024

@Gabryel-lima

I'd say that we should make every example that's been well thought-out like aliens.py to be in their own separate repository such as https://github.com/pygame-community/pygame-aliens.git and remove smaller examples such as go_over_there.py

If we would like to take from example...

Monogame has separate repositories for their examples:

As well as Godot Engine:

As well as raylib:

But not heaps.io, the game engine powering Dead Cells

It would be good.

Gabryel-lima

Gabryel-lima commented on Jun 5, 2024

@Gabryel-lima

I'm skeptical of the benefit of moving them out into a separate repository.

If we have outdated tutorials rotting in the main repository, moving them into another repository just lets them rot in a different place? A place that's even less likely to have eyes on it?

RE examples, anybody can post examples on Github, there have been several projects. Like https://github.com/pygame-examples/pygame-examples

I've been here for a while and haven't noticed this repo yet lol

Starbuck5

Starbuck5 commented on Jun 7, 2024

@Starbuck5
Member

I've been here for a while and haven't noticed this repo yet lol

So you're saying that we should move things out of the main repo and that you don't notice other repos?

My point is that people can post their examples on the internet without it being an official part of our repo or our Github organization, and there's nothing wrong with that.

Gabryel-lima

Gabryel-lima commented on Jun 7, 2024

@Gabryel-lima

I've been here for a while and haven't noticed this repo yet lol

So you're saying that we should move things out of the main repo and that you don't notice other repos?

My point is that people can post their examples on the internet without it being an official part of our repo or our Github organization, and there's nothing wrong with that.

That's not what I meant. I just pointed out that I hadn't seen the example repo here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @robertpfeiffer@MyreMylar@andrewhong04@Starbuck5@Gabryel-lima

        Issue actions

          Move tutorials out of main repo into their own repository · Issue #2878 · pygame-community/pygame-ce