Coder Social home page Coder Social logo

penrose / cookiecutter-domain Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 409 KB

A cookiecutter template for easy creation of a Penrose domain Github repository

License: Other

Ruby 4.33% HTML 11.59% TeX 12.88% CSS 64.10% JavaScript 7.10%
cookiecutter penrose-domain

cookiecutter-domain's Introduction

Penrose Domain Cookie Cutter Template

๐Ÿช ๐Ÿช ๐Ÿช

This is a ๐Ÿช cookiecutter ๐Ÿช template for making it easy to generate a Documentation and static API for a new Penrose domain. As an example, here is the domain-linear-algebra repository. Look at it's github pages to see the documentation and static api.

under development expect changes and further testing.

Usage

$ pip install cookiecutter
$ cookiecutter https://www.github.com/penrose/cookiecutter-domain

Step 1. Generate Codebase

Quick Start

You don't need to download or clone anything - you can just install cookiecutter (a Python package on pip) and then run this command!

  1. Install cookiecutter
$ pip install cookiecutter

You'll notice that all "templates" provided by penrose to make development easier start with "cookiecutter." So the cookiecutter for a domain repository naturally looks like this:

$ cookiecutter https://www.github.com/penrose/cookiecutter-domain

Development Start

If you want to customize the template before you fill it with your variables, you can also optionally first clone the template repository. You likely want to fork the repository to your Github account, and then do the following

  1. Install cookiecutter
$ pip install cookiecutter
  1. Clone this repository
git clone https://www.github.com/penrose/cookiecutter-domain
  1. Edit the cookiecutter.json file with your parameters. If you want to add new parameters (meaning text or other fields that get rendered into the template) just add a new key and value to this dictionary:
cd cookiecutter-domain
cat cookiecutter.json
{
    "project_lead": "VanessaSaurus",
    "project_email": "[email protected]",
    "project_name": "Linear Algebra",
    "project_slug": "domain-linear-algebra",
    "project_short_description": "A domain for Penrose",
    "year": "2018",
    "version": "0.0.1",
    "repo_user": "penrose",
    "repo_name": "domain-linear-algebra",
    "twitter_name": "vsoch"

}
  1. Create the repository from this one.
cookiecutter --no-input

Step 2. Write Your Domain!

The instructions (and examples) for writing the domain, along with structure of the repository, are included in its README. Generally you will want to:

  • add development files to _dev
  • add production files to _src
  • add markdown files to describe style, domain, and substance trios to _domain

cookiecutter-domain's People

Contributors

vsoch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

stjordanis

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.