summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-11 17:24:00 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-11 17:24:00 +0100
commit67281c4f469716c7f2341676f2ad656d8c544ea3 (patch)
tree4a5bd6602306369db2b9e99b7cbb405f72b816d5 /src/lib.rs
parent5942c3ba2ab1cd71f86749a91bc04e45da175f96 (diff)
Redesign document representation 🧱
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 09740fb1..f2c9b5eb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,7 +5,7 @@
//! # Example
//! This is an example of compiling a really simple document into _PDF_.
//! ```
-//! use typeset::{parsing::ParseTree, doc::Generate, write::WritePdf};
+//! use typeset::{parsing::ParseTree, engine::Typeset, write::WritePdf};
//!
//! // Create an output file.
//! # /*
@@ -15,7 +15,7 @@
//!
//! // Parse the source and then generate the document.
//! let src = "Hello World from Typeset‼";
-//! let doc = src.parse_tree().unwrap().generate().unwrap();
+//! let doc = src.parse_tree().unwrap().typeset().unwrap();
//!
//! // Write the document into file as PDF.
//! file.write_pdf(&doc).unwrap();
@@ -23,9 +23,10 @@
mod pdf;
mod utility;
-pub mod font;
pub mod parsing;
pub mod doc;
+pub mod engine;
+pub mod font;
/// Writing of documents into supported formats.
pub mod write {