xima/xm_drupal_manual

This module provides a manual for Drupal using the export route of the books core module.

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

Language:Twig

Type:drupal-module

0.1.1 2024-04-26 12:46 UTC

This package is auto-updated.

Last update: 2024-04-29 15:13:05 UTC


README

This module provides a manual for Drupal using the export route of the books core module.

The current state is experimental and may contain hard codings.

Features

  • templates for displaying a book with all of its pages on a single page
  • hides the books outline for non-book-page nodes
  • a minimal styling for the manual

Requirements

  • Drupal 10+

Installation

  1. Install using composer.json: composer require xima/xm_drupal_manual
  2. Enable the module in the drupal backend as usual

Developer instructions

PHP quality tools

Rector

A rector config is provided. Run the following command to execute it:

composer run-script php:check

Build assets

Navigate to the module folder in order to rebuild the assets:

Build the minified js:

npm run js

Compile scss into minified css:

npm run sass