diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-03-11 17:24:00 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-03-11 17:24:00 +0100 |
| commit | 67281c4f469716c7f2341676f2ad656d8c544ea3 (patch) | |
| tree | 4a5bd6602306369db2b9e99b7cbb405f72b816d5 /src/lib.rs | |
| parent | 5942c3ba2ab1cd71f86749a91bc04e45da175f96 (diff) | |
Redesign document representation 🧱
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 { |
