diff options
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 { |
