Git Product home page Git Product logo

ethicalads.io's Introduction

EthicalAds

This is a landing page for EthicalAds.io, the developer network from Read the Docs.

Site details

The site is built as a static site using Pelican and hosted by GitHub pages. The site is automatically built and updated when there are commits on the main branch although it can take up to 5 minutes.

Building the site locally

You can build the site HTML and serve it locally with:

$ pip install -r requirements.txt
$ pre-commit install  # Install a code style pre-commit hook
$ inv rebuild         # build one time
$ inv regenerate      # regenerate the site whenever you modify a page/post
$ inv serve           # serve the site at http://localhost:8000

If you don't see any styling, you may also need to build static assets (see below).

Building static assets

Built static assets are NOT checked into the repository and you need to build them if files under static-src/ are modified.

$ npm install
$ npm run build     # use "npm run dist" for minified builds

The static content appears in ethicalads-theme/static/

Deploying the site

The site is generated automatically by GitHub Actions whenever there's new commits on the main branch. It is served by GitHub pages at https://www.ethicalads.io.

For more details on the deployment actions, see workflows.

Developing the site

Writing pages

Pages should be saved under content/pages/. By default, they use the ethicalads-theme/templates/page.html template but that can be overridden.

Writing blog posts

Blog posts should be saved under content/posts/.

Updating the design

The styles and scripts for the site are built by Webpack from the sources in static-src/. The HTML templates for the site live under ethical-ads-theme/ and extend from Pelican's simple theme.

The EthicalAds theme was not designed to work with relative URLs.

ethicalads.io's People

Contributors

agjohnson avatar davidfischer avatar dependabot[bot] avatar ericholscher avatar humitos avatar idoshamun avatar mxracohen 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.