Git Product home page Git Product logo

chirpradio.github.io's Introduction

chirpradio.github.io

Developer documentation and wiki in Jekyll hosted on Github Pages

View the site here: https://chirpradio.github.io/

Handy Documentation Links

How to Contribute

Edit files in the Github GUI

This is best for minor changes or adding/editing content on existing pages.

  1. Navigate to the page you want to edit
  2. Click "Edit this page on Github"
  3. You will be routed to the file in Github. Click the "Edit this page" pencil icon in the top-right corner.
  4. Modify the file to your liking. All the pages support standard markdown, but special functionality for Jekyll and our template can be found in the docs above.
  5. When finished, click the green "Commit Changes" button.
    • Add a commit message. Try to be brief but informative, please!
    • Choose where to commit your changes. If you select "Commit directly to the main branch", your changes will be published immediately. If you commit to a new branch, you will need to open a pull request for the changes and merge it into main for your changes to be published.
  6. Navigate to the page you updated to check over your changes and ensure everything is working correctly. Please note, changes may take up to ten minutes to appear on the site.

Run the site locally and push changes

This is best for major changes, adding new pages, or adding functionality.

Requirements:
  • Ruby v3.2.3 (recommend using rbenv to manage Ruby versions, if you don't have a preferred version manager on your machine)
  1. Clone this repo
  2. Make desired changes directly to the code
  3. To preview your changes locally, navigate to your local repo and run bundle exec jekyll build && bundle exec jekyll serve to build the site and start the server. You may need to install bundler or bundle install the gems from the Gemfile the first time you do this (gem install bundler then bundle install)
  4. Visit localhost:4000 You should be able to see your local changes here. The preview should update on file save, so new changes should get pulled in as you refresh. There may be some delay. Where your server is running, you will be able to see it rebuilding the files as they're saved. All the pages support standard markdown, but special functionality for Jekyll and our template can be found in the docs above.
  5. When finished, commit and push changes to Github. Changes pushed to the main branch will publish to the site automatically. If you commit to a new branch, you will need to open a pull request for the changes and merge it into main for your changes to be published.
  6. Navigate to the page you updated to check over your changes and ensure everything is working correctly. Please note, changes may take up to ten minutes to appear on the site.
Using Docker Compose
  1. Setup docker in your local environment. Tutorial: Try Docker Compose
  2. Clone this repo
  3. From the root of this project, run this command in your cli: docker compose up You should see an output similar to this:
+] Running 1/0
 โœ” Container chirpradiogithubio-jekyll-1  Created                                                                                                                                                                                                                       0.0s Attaching to jekyll-1
jekyll-1  | ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux-musl]
jekyll-1  | Configuration file: /srv/jekyll/_config.yml
jekyll-1  |             Source: /srv/jekyll
jekyll-1  |        Destination: /srv/jekyll/_site
jekyll-1  |  Incremental build: disabled. Enable with --incremental
jekyll-1  |       Generating...
jekyll-1  |       Remote Theme: Using theme just-the-docs/just-the-docs
jekyll-1  |        Jekyll Feed: Generating feed for posts
jekyll-1  |                     done in 3.285 seconds.
jekyll-1  |  Auto-regeneration: enabled for '/srv/jekyll'
jekyll-1  |     Server address: http://0.0.0.0:4000/
jekyll-1  |   Server running... press ctrl-c to stop.
  1. Navigate to localhost:4000 in your browser to see the wiki. All changes made in the code can should be visible on the corresponding page with a simple page refresh.

Troubleshooting

Q: I pushed some changes to main, but they're not showing up on the site. What gives?!

A: First off, changes can take up to ten minutes to show up on the site. If it's been more than ten minutes, try checking the workflow runs here (can also be found under "Actions" tab at the top of the repo.) The workflow action for "pages build and deployment" will automatically run whenever changes are pushed to the main branch. Check that a workflow action is listed for your change, and that it has a green check mark. If it's showing a red X, that means something failed during build and deployment. You can click on it to view associated error messages, and find out what went wrong.

Q: When I try to build and start the Jekyll server locally, I get an error like "Could not find 'bundler' (2.5.5) required by your chirpradio.github.io/Gemfile.lock. (Gem::GemNotFoundException)"

A: You will need to install bundler and/or bundle install gems before trying to run Jekyll. Try gem install bundler then bundle install (the error may give you more specific instructions, like what specific version of bundler to install, in which case follow those instructions.)

Q: When I try to install bundler or run bundle install, I get an error like "ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory."

A: Your computer is trying to use its system Ruby to install the gems, which is usually not a good idea and generally prohibited. Consider installing a Ruby version manager, like rbenv, if you don't already have one. If you do have one, make sure it is currently set to use a different Ruby than the system Ruby on your computer. There is a .ruby-version file in this repo that should automatically specify what version to use, so your version manager may prompt you to install a specific version when you navigate into the repo.

chirpradio.github.io's People

Contributors

cocobeane avatar lund5000 avatar bmcdonn2 avatar chirpjchapman avatar

Watchers

 avatar  avatar  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.