Skip to content

pyladies/chapter-websites

Repository files navigation

PyLadies Chapter Websites

Request a PyLadies chapter repository

To start you'll need to open an issue in this repository providing:

  • PyLadies chapter name
  • Confirm you have registered your PyLadies chapter in the chapter directory
  • GitHub handle(s) of the chapter organizers
  • URL for your custom domain (e.g. seattle.pyladies.com or sea.pyladies.com)

You'll be provided a PyLadies organization repository (e.g. PyLadies Chicago) and be setup in a PyLadies team with proper publishing permissions.

What to include in your PyLadies page

Some ideas of content to include on your page:

  • Play with the Meetup API to show your upcoming events, number of members, etc
  • Play with the Twitter API to show your group's latest tweets
  • A chapter blog
  • anything!

Bootstrap with PyLadies templates

We've started adding templates into the pyladies organization you can use by clicking the Use this template button. Existing templates include:

If you have a template you'd like to create here's how.

Adding your website to a submodule

If your website code lives in the main Pyladies repo, you'll want to copy your contents into the new repository that the PyLadies Tech Infra team will create for you. Then in the main Pyladies repo you will need to open a pull request to remove your website. Follow these instructions to remove the website.

The workflow for adding your website as a submodule is as follows:

$ cd chapter-websites  # PyLadies repo root
$ git submodule add -b <YOUR_CHAPTER_WEBSITE_REPO_PROD_BRANCH> https://github.com/<YOUR_GITHUB_USER_NAME>/<YOUR_PYLADIES_WEBSITE_REPO>.git chapter_websites/<YOUR_CHAPTER_NAME> # e.g. git submodule add -b gh-pages https://github.com/pyladies/pyladies-chicago-website chicago
$ git submodule init # Adds to .gitmodules 

Here is an example pull request adding Chicago to the repository.

If you ever want the PyLadies repo to be fixed at the most recent commit of your website you'll need to:

$ cd chapter-websites/<YOUR_CHAPTER_NAME>  # Your PyLadies website submodule directory
$ git checkout <YOUR_CHAPTER_WEBSITE_REPO_PROD_BRANCH> # Update to whichever branch you use to host your production code on e.g. gh-pages if hosting on GitHub pages
$ git pull 
$ cd ../
$ git add <YOUR_CHAPTER_NAME> # Your PyLadies website submodule directory
$ git commit -m "Update submodule for chapter <YOUR_CHAPTER_NAME> to latest commit on main"
$ git push <YOUR_CHAPTER_WEBSITE_REPO_PROD_BRANCH>

Updating your website submodule

The repository is setup to use a GitHub action to checkout submodules defined in the repo any time a push to main happens. The setup is specified under .github/workflows/build.yml. Or you can see more info under the repo actions tab.

Or you can do this manually via git submodule update --recursive --remote from the project root locally.

Questions?

Reach out to #project-tech-infra on the PyLadies Slack!

About

Repo of all the PyLadies chapter websites submodules

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published