GithubHelp home page GithubHelp logo

pressbooks / pb-cli Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 624 KB

A suite of wp-cli commands for Pressbooks.

Home Page: https://cli.pressbooks.org/

License: GNU General Public License v3.0

PHP 60.04% Gherkin 9.29% JavaScript 1.21% Stylus 0.34% SCSS 11.82% Mustache 17.29%

pb-cli's Issues

Add 'create network manager' command

Create a command which creates a user and makes them a 'restricted' super admin (i.e. network manager) or gives an existing user the restricted super admin capacity.

Add clone command

$ wp pb clone <source> <destination>

Where <source> is a URL and <destination> is a book slug on the current network.

Refactor to be PSR compatible

As part of the standardization process we want to make PB PSR compatible, this effort was in the radar before (pressbooks/pressbooks#271).

This task should include

  • New directory structure PSR4 compilant
  • Rename classes
  • Adopt PSR12? coding standards ?
  • Refactor some codes to use the new namespaced classes

Theme Lock Command

Thinking:

wp pb theme lock — locks theme if not already locked
wp pb theme unlock — unlocks theme if locked

Both of these should tell the user that they can’t lock the theme if it’s (deprecated) Custom CSS.

Add typography load command

In the case that we know a network wants/needs fonts, would be nice to run a command to load fonts to pre-download typefaces/fonts so they're available.

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.