Skip to content

NASSEDOSARI/creativecommons.github.io-source

Repository files navigation

creativecommons.github.io-source

Source for creativecommons.github.io

Overview

This site is built using Lektor. All changes to https://creativecommons.github.io must be made here and deployed via lektor (see Deploying, below).

⚠️DO NOT MAKE CHANGES TO THE creativecommons.github.io REPO DIRECTLY.

Installation

  1. Make sure you have pipenv installed.
  2. Clone this repository.
  3. Open your command line interface and cd to the repository root directory.
  4. Run pipenv install to create a Python virtual environment and install the requirements for this project.

Development

  1. Run pipenv shell to spawn a shell with the virtualenv activated
  2. Run lektor server to start the Lektor development server. You will be able to see the website at http://localhost:5000/. The Lektor server will rebuild the site every time you change any content.

Deploying

When you are ready to deploy a new version of the site, run lektor deploy (assuming you have your GitHub SSH key already set up and you have access to the creativecommons.github.io repository). That's it, it's live on production!

Project Structure

Here's how the code is structured in the top level of the repository:

  • assets: This directory contains the JavaScript and CSS files for the project. Most of the JavaScript and CSS is third-party code and loaded via CDN so this is pretty empty.
  • content: The content of the site lives here. Here's an explanation of how content works in Lektor. This is probably what you'll be modifying most often.
  • models: All content in Lektor is associated with data models to define their schema. Currently, we only use the default page model that ships with Lektor.
  • templates: This is where the Jinja2 templates that render content are stored. See the Lektor template documentation for more information.

About

Source files for CC Open Source website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 64.1%
  • JavaScript 16.4%
  • SCSS 15.6%
  • Python 3.9%