Giter Site home page Giter Site logo

chapter-websites's Introduction

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!

chapter-websites's People

Contributors

aliciapj avatar bethanyg avatar eduatro avatar fernandadguez avatar julianaklulo avatar lorenanicole avatar mariatta avatar reshamas avatar willingc avatar

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.