From 36bcf7277c5753c15f1da07096371fac7380ee48 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:13:32 +0400 Subject: [PATCH] update README --- README.md | 40 ++++++++++++++++++++++++++++++------ components/BookInfoInput.tsx | 1 - pages/index.tsx | 3 +++ 3 files changed, 37 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cab385b..91b57a5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,14 @@ # RTL EPUB Maker -Easily create EPUB e-book files with proper RTL support +Easily create EPUB e-book files with proper RTL support. -## Running Locally +This is a web app that uses [pandoc](https://pandoc.org) to create .epub files for e-books in RTL languages. Making RTL e-books can be tricky. This tries app tries to simplify the process as much as possible, so that anyone can make them. + +[Try it live - RTL EPUB Maker](https://rtl-epub-maker.lingdocs.com) + +## Running + +You can run this app on your own machine or host it on a server. ### With Node @@ -11,17 +17,39 @@ requires: - Node.js 12.22.0 or later - [pandoc](https://pandoc.org/installing.html) -``` +To run in dev mode: + +```sh npm install npm run dev ``` +To host in production: + +```sh +npm run build +npm run start +``` + ### With Docker -Or, you can just run the docker image with pandoc and everything included. +If you are using `linux/amd64` architecture you can just run the [the docker image](https://hub.docker.com/r/lingdocs/rtl-epub-maker). -``` +```sh docker compose up ``` -App will be served on `http://localhost:3001` +If you are using an architecture other than `linux/amd64` you will need to build your own Docker image. + +```sh +docker build . -t rtl-epub-maker +docker run -p 127.0.0.1:3001:3001 rtl-epub-maker +``` + +## Serving + +The app will be served on `http://localhost:3001`. Add a reverse proxy with SSL if you want to serve it to the world. + +--- + +Code is licensed under a [MIT License](https://github.com/lingdocs/rtl-epub-maker/blob/master/LICENSE). Contributions are welcome. diff --git a/components/BookInfoInput.tsx b/components/BookInfoInput.tsx index 1800099..9e29d2f 100644 --- a/components/BookInfoInput.tsx +++ b/components/BookInfoInput.tsx @@ -66,7 +66,6 @@ function BookInfoInput({ handleSubmit }: { handleSubmit: (info: { frontmatter: F }); } return
-

Book Metadata

diff --git a/pages/index.tsx b/pages/index.tsx index 25673e4..63959cb 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -6,6 +6,7 @@ import DocReceiver from "../components/DocReceiver"; import { bookRequest } from "../lib/fetchers"; // TODO: Make Title Required +// TODO: Have author field in there // TODO: Allow Word File straight w/ images etc upload // TDOO: Add language selection option (Pashto, Arabic, Farsi, Urdu) @@ -42,6 +43,7 @@ const Home: NextPage = () => {

RTL EPUB Maker 📚

Easily create EPUB e-book files with proper RTL support (🚧 in progress 👷)

+

Book Content

@@ -50,6 +52,7 @@ const Home: NextPage = () => {
+

Book Metadata

Made by LingDocs.com