Rotaract Library is a public resource center for Rotaract South Asia MDIO, providing curated assets, templates, guides, checklists, and tools for Rotaract leaders across South Asia.
Production site: https://library.rsamdio.org/
- Static site generator: Jekyll 4
- Styling: Tailwind CSS v3 (compiled automatically via Jekyll plugin or
npm run build:css) - Search: Client-side Lunr.js
- CMS: Decap CMS (Netlify CMS successor) at
/admin- Git Gateway + Netlify Identity
- All content is stored as Markdown in the repo
- Hosting: Netlify
- Request form backend: Google Apps Script + Google Sheets
- Stored in
_resources/*.md - Front‑matter fields:
title: Group titleicon: Material Symbols icon name (e.g.group_add)icon_color: Tailwind color token (e.g.emerald,amber)summary: Short description shown on cards and heroplaceholder: Empty‑state text when a group has no resourcesresources: List of resource cards (see below)
Each resources item in a group has:
name: Display name of the resourcedescription: Short descriptiontype: Free‑text file type label (e.g.PPTX,PDF,Toolkit)type_icon: Material Symbols icon name for the typepreview_image_url: Optional preview image (local/resources/...or full URL)view_url: URL the “View” button opens (local or external)download_url: Optional URL for a direct download button
Cards are rendered:
- On the homepage (
_includes/thematic-groups.html) - On each group page (
_layouts/resource_group.html) - In Lunr search results (
_includes/search-lunr.html)
- CMS entry point:
/admin/index.html - Main collection: Resource Groups (
admin/config.yml) - Editors can:
- Create/edit resource groups and their cards
- Choose icons from the full Material Symbols Outlined set (with visual previews)
- Choose icon colors from a curated Tailwind palette (with color swatches)
- Use quick‑pick file type labels plus a free‑text override
All changes are committed back to this Git repository as Markdown and config updates.
- Frontend page:
request.html(/request/)- Simple HTML form posting via
fetchto a Google Apps Script endpoint - Endpoint URL is configured in
_config.ymlasrequest_form_endpoint
- Simple HTML form posting via
- Backend script:
code.gsdoPost(e)appends each submission to a Google Sheet (Requeststab)- Captured fields: name, email, club, district, resource group, details, reference link
- Sends a confirmation email to the submitter, with a CC to the manager email (
rotaract3191drr@gmail.comby default)
If you fork this repo, you should:
- Create your own Google Sheet and Apps Script project.
- Copy and adapt
code.gs(especially the spreadsheet ID and manager email). - Publish the script as a web app and paste the URL into
_config.ymlasrequest_form_endpoint.
Prerequisites:
- Ruby and Bundler installed
- Node.js and npm installed
Setup and run:
npm install
bundle install
bundle exec jekyll serveThe site will be available at http://localhost:4000/.
Note: The /admin CMS page will load locally, but authentication and Git Gateway depend on your Netlify configuration.
- The site is deployed via Netlify, building from this repository.
- Standard Jekyll build command is used (
jekyll build) with the output in_site/. - The Netlify status badge at the top of this README reflects the current deploy status for the production site.