Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alicewriteswrongs/wget2hugo
convert a wget backup to markdown
https://github.com/alicewriteswrongs/wget2hugo
Last synced: about 1 month ago
JSON representation
convert a wget backup to markdown
- Host: GitHub
- URL: https://github.com/alicewriteswrongs/wget2hugo
- Owner: alicewriteswrongs
- License: mit
- Created: 2020-07-25T14:23:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-06T23:15:03.000Z (almost 3 years ago)
- Last Synced: 2024-11-27T19:38:54.905Z (about 2 months ago)
- Language: Rust
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# wget2hugo
This is a program that converts a `wget` backup of a site into Markdown, which
can then be used as content in [Hugo](https://gohugo.io/) or a similar static
site generator.You can create a full backup of a website using
```
wget \
--mirror \
--convert-links \
$URL
```which is great! but if you don't want to merely store that backup or host an
exact mirror you'll want to convert that backup to a more manageable format.
This program will convert html into Markdown files, and will copy all static
files over as well (PDFs, .doc files, images, etc). The goal is to have output
which can be immediately popped into a Hugo site's `content` directory, built,
and deployed.It's written in Rust, using [this HTML -> Markdown
crate](https://crates.io/crates/html2md). I wrote a
previous version in node.js using
[turndown](https://github.com/domchristie/turndown), but ran into issues with
memory leaks and performance.### Running it
Just do
```sh
cargo run --help
```and it should print usage information.