gazetta/lib.rs
1// Copyright (C) 2015 Steven Allen
2//
3// This file is part of gazetta.
4//
5// This program is free software: you can redistribute it and/or modify it under the terms of the
6// GNU General Public License as published by the Free Software Foundation version 3 of the
7// License.
8//
9// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11// the GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License along with this program. If
14// not, see <http://www.gnu.org/licenses/>.
15//
16
17//! This is the API documentation for gazetta. If you just want to use gazetta, see the
18//! [homepage](http://stebalien.com/projects/gazetta).
19
20#![allow(clippy::redundant_field_names)]
21
22pub mod view {
23 pub use gazetta_core::view::*;
24}
25
26pub mod error {
27 pub use gazetta_core::error::*;
28}
29
30pub mod model {
31 pub use gazetta_core::model::*;
32 pub use gazetta_model_ext::*;
33}
34
35pub mod render {
36 pub use gazetta_core::render::*;
37 pub use gazetta_render_ext::*;
38}
39
40pub mod prelude {
41 pub use gazetta_core::prelude::*;
42}
43
44pub mod cli {
45 // Because rust can be stupid sometimes...
46 // We can't just re-export private modules.
47 pub use gazetta_cli::*;
48}
49
50#[doc(no_inline)]
51pub use crate::error::{AnnotatedError, RenderError, SourceError};
52#[doc(no_inline)]
53pub use crate::model::{EntryMeta, Meta, Source, SourceMeta};
54#[doc(no_inline)]
55pub use crate::render::Gazetta;
56#[doc(no_inline)]
57pub use crate::view::{Context, Page, Site};