refactor(api): restrict visibility of internal items
- content: DEFAULT_WEIGHT, DEFAULT_WEIGHT_HIGH → pub(crate) - sitemap: SitemapEntry → pub(crate) These items are implementation details not exposed to consumers.
This commit is contained in:
@@ -7,10 +7,10 @@ use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
/// Default weight for content items in navigation and listings.
|
||||
pub const DEFAULT_WEIGHT: i64 = 50;
|
||||
pub(crate) const DEFAULT_WEIGHT: i64 = 50;
|
||||
|
||||
/// High default weight for content that should appear last (e.g., projects).
|
||||
pub const DEFAULT_WEIGHT_HIGH: i64 = 99;
|
||||
pub(crate) const DEFAULT_WEIGHT_HIGH: i64 = 99;
|
||||
|
||||
/// The type of content being processed.
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
|
||||
@@ -6,7 +6,7 @@ use crate::escape::xml_escape;
|
||||
use std::path::Path;
|
||||
|
||||
/// A URL entry for the sitemap.
|
||||
pub struct SitemapEntry {
|
||||
pub(crate) struct SitemapEntry {
|
||||
/// Absolute URL (e.g., "https://example.com/blog/post.html")
|
||||
pub loc: String,
|
||||
/// Optional last modification date in W3C format (YYYY-MM-DD)
|
||||
|
||||
Reference in New Issue
Block a user