Coder Social home page Coder Social logo

daiiz / pimento Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 606 KB

Scrapboxから薄い本を作るツール

Home Page: https://scrapbox.io/pimento/

Makefile 0.47% Dockerfile 1.52% Python 14.22% HTML 1.57% TeX 16.88% JavaScript 65.16% Shell 0.17%
lualatex scrapbox

pimento's Introduction

Pimento

Converter

Build docker image

$ make build

Run local server on docker

Start the local server on port 5001.

$ make run-server

Environment variables

Local tools mode

# .env
PIMENTO_API_ORIGIN=http://localhost:5001
LOCAL_TOOLS_MODE=true

Scrapbox UserScript

Local tools mode

// script.js
import { initPimento } from "/api/code/daiiz-codes/pimento-build/script.js";
initPimento([], "http://localhost:5001");

Bookbinding global settings

  1. Create a page _pimento in your Scrapbox project.
  2. Copy a sample code https://scrapbox.io/pimento/B5_標準 (template.tex) to the page _pimento.

Examples

Options (WIP)

% =====pimento-options=====
% icons=gray // gray, color, text*, ignore
% images=gray // gray*, color, ignore
% heading-number-omit-level=3
% appendix=true // true, false*
% index=true // true, false*

For developers

Run local dev server on docker

$ make run-server-dev

Build TeX documents manually

$ make run-bash
# cd /var/apps/docs
# lualatex tex/sample.tex

Build client JavaScript code

Note: Run outside a Docker container.

$ npm run dev

pimento's People

Contributors

daiiz avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.