GithubHelp home page GithubHelp logo

pressbooks / buckram Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 4.0 12.42 MB

Opinionated SCSS components for books (web, EPUB and PDF).

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

License: GNU General Public License v3.0

JavaScript 0.74% HTML 13.30% SCSS 85.96%
books ebooks eprdctn epub

buckram's Introduction

Pressbooks

Contributors: Pressbooks [email protected] Tags: ebooks, publishing, webbooks Requires at least: 6.5.0 Tested up to: 6.5.0 Stable tag: 6.18.1 Requires PHP: 8.1 License: GPL v3.0 or later License URI: https://github.com/pressbooks/pressbooks/blob/production/LICENSE.md

Pressbooks is an open source book publishing tool built on a WordPress multisite platform.

Description

Packagist Current Release Packagist PHP from Packagist

Packagist Code Coverage Translate Pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS. Pressbooks is free software, released under the GPL v3.0 or later license.

Our webbooks and EPUB/PDF exports are all driven by HTML + CSS. XML outputs have no styling.

Requirements

Pressbooks works with PHP 8.1 and WordPress 6.5.0. Lower versions are not supported.

Installing the Plugin

Pressbooks is not for use on an existing blog. Instead it should be used with a fresh, multisite WordPress installation.

To install Pressbooks on your site, download the latest release and follow our installation instructions.

You may want to try Pressbooks.com before deciding whether or not you wish to host and maintain your own instance of Pressbooks. We can also host and maintain an instance of Pressbooks for you.

Contributor guidelines

Developers who are interested in contributing to our project should consult our "Contributing" guidelines and the developer guides published on our documentation website.

Disclaimers

The Pressbooks plugin is supplied "as is" and all use is at your own risk.

Changelog

6.18.1

Upgrade Notices

6.18.0

6.17.0

6.15.2

6.15.1

6.12.0

6.10.0

6.9.0

  • Pressbooks 6.9.0 requires PHP >= 8.1

6.4.0

  • Pressbooks 6.4.0 requires PHP >= 8.0
  • Pressbooks 6.4.0 requires WordPress 6.1.1

6.0.0

5.34.1

5.34.0

5.33.0

5.32.0

5.31.0

5.30.0

5.27.0

5.25.0

5.21.0

5.20.1

5.18.0

  • Pressbooks 5.18.0 requires PHP >= 7.3
  • Pressbooks 5.18.0 requires WordPress 5.5.3

5.16.0

  • If you are using the plugin (Lord of the Files)[https://wordpress.org/plugins/blob-mimes/] version <=1.0.0, this upgrade will break your application. To fix this, you would need to update Lord of the files plugin to at least 1.1.0.

5.15.1

buckram's People

Contributors

arzola avatar beckej13820 avatar dannylonglegs avatar dependabot[bot] avatar github-actions[bot] avatar greatislander avatar steelwagstaff avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

buckram's Issues

the following page counter variables should end with !default to allow overwrites:

In https://github.com/pressbooks/buckram/blob/master/styles/variables/_structure.scss
the following page countervariables should end with !default to allow overwrites:

// Page number style

$front-matter-page-number-left: counter(page, lower-roman) !default;
$front-matter-page-number-right: counter(page, lower-roman) !default;

$introduction-page-number-left: counter(page) !default;
$introduction-page-number-right: counter(page) !default;

$part-page-number-left: counter(page) !default;
$part-page-number-right: counter(page) !default;

$chapter-page-number-left: counter(page) !default;
$chapter-page-number-right: counter(page) !default;

$back-matter-page-number-left: counter(page) !default;
$back-matter-page-number-right: counter(page) !default;

Chapter Number variables

Variables to add:

  • Border Bottom
  • Border Color
  • Padding Bottom (or space between text and border)
  • Left Margin
  • Right Margin
  • Before Content

Part Number Variables

Variables to add:

  • Left margin
  • Right margin
  • Border Bottom
  • Padding bottom (space between text and border)

Headers variables

Add variables for bottom borders on headers. Also add variable for border colour.

EPUB chapter subtitle column span

Chapter subtitles break chapter styling on chapters they are featured on. This is caused by style "column-span: all" on the element. When turned off, it fixes problem behaviour.

First page with "column-span: all"
screen shot 2018-05-08 at 12 01 49 pm

Second page with "column-span: all"
screen shot 2018-05-08 at 12 01 59 pm

First page with "column-span: all" removed:
screen shot 2018-05-08 at 12 02 10 pm

Second page with "column-span: all" removed:
screen shot 2018-05-08 at 12 02 20 pm

Standardize variable names for pseudo-content

  • Before and after part numbers/titles (TOC)
  • Before and after chapter numbers/titles (TOC)
  • Before and after part numbers/titles (part headings)
  • Before and after chapter numbers/titles (chapter headings)

Improve table of contents

  • Support centered TOC in PDF
  • Support better numbering for left-aligned TOC
  • Improve EPUB TOC support
  • Ensure that numbering in front matter doesn't switch back to Roman if other front matter follows the Introduction

Page break before chapter subtitle

When a subtitle (by itself with no other chapter features) is used on a chapter, the page breaks before the subtitle and the subtitle is pushed to the next page.

Title Page Title variables

Variables to add

  • Left margin
  • Right margin
  • Bottom border
  • Padding bottom (Space between text and border)

Add support for section title decoration

Add support for section title decoration/glyph:
Variables to make it work:

  • font-family
  • content "\a "
  • display (default to none; if visible, set to block)
  • white-space: pre
  • font-size
  • font-weight
  • margin-top
  • margin-bottom

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.