pub struct GitHubDocsDownloader { /* private fields */ }
Expand description
Documentation downloader using git clone approach.
This downloader fetches documentation files by cloning the repository with git. It automatically discovers documentation directories and filters files based on common documentation patterns.
Implementations§
Source§impl GitHubDocsDownloader
impl GitHubDocsDownloader
Sourcepub fn new(repo: RepoSpec, config: DownloadConfig) -> Self
pub fn new(repo: RepoSpec, config: DownloadConfig) -> Self
Create a new documentation downloader.
§Arguments
repo
- Repository specification (owner/name)config
- Download configuration
Sourcepub fn find_docs_directories(&self) -> Result<Vec<DocsDirectory>>
pub fn find_docs_directories(&self) -> Result<Vec<DocsDirectory>>
Discover all documentation directories in the repository.
§Errors
Returns GitHubDocsError
if directory discovery fails.
Sourcepub fn get_all_documentation_files(
&self,
docs_dirs: &[DocsDirectory],
) -> Result<Vec<DocumentationFile>>
pub fn get_all_documentation_files( &self, docs_dirs: &[DocsDirectory], ) -> Result<Vec<DocumentationFile>>
Sourcepub fn download_files(&self, files: &[DocumentationFile]) -> Result<()>
pub fn download_files(&self, files: &[DocumentationFile]) -> Result<()>
Auto Trait Implementations§
impl Freeze for GitHubDocsDownloader
impl RefUnwindSafe for GitHubDocsDownloader
impl Send for GitHubDocsDownloader
impl Sync for GitHubDocsDownloader
impl Unpin for GitHubDocsDownloader
impl UnwindSafe for GitHubDocsDownloader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more