Skip to content

Commit dee332b

Browse files
CopilotArchmongerCopilot
authored
Switch documentation from ReadTheDocs/Sphinx to MkDocs Material (#593)
* Replaces the entire Sphinx build system with MkDocs Material theme * Converts all 9 .rst documentation files to clean Markdown format * Updates build configurations and dependencies for the new documentation system --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Archmonger <16909269+Archmonger@users.noreply.github.com> Co-authored-by: Mark Bakhit <archiethemonger@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e00ac4a commit dee332b

28 files changed

+1187
-1959
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ coverage_html_report/
5858
# Sphinx documentation
5959
docs/_build/
6060

61+
# MkDocs documentation
62+
site/
63+
6164
# PyBuilder
6265
target/
6366

.readthedocs.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Read the Docs configuration file for Sphinx projects
1+
# Read the Docs configuration file for MkDocs projects
22
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
33

44
# Required
@@ -14,13 +14,12 @@ build:
1414
# rust: "1.70"
1515
# golang: "1.20"
1616

17-
# Build documentation in the "docs/" directory with Sphinx
18-
sphinx:
19-
configuration: docs/conf.py
20-
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21-
# builder: "dirhtml"
17+
# Build documentation with MkDocs
18+
mkdocs:
19+
configuration: mkdocs.yml
2220
# Fail on all warnings to avoid broken references
2321
# fail_on_warning: true
22+
2423
# Optionally build your docs in additional formats such as PDF and ePub
2524
# formats:
2625
# - pdf

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
recursive-include requirements *
22
include requirements.txt
3-
include README.rst
3+
include README.md
44
include LICENSE.txt
55
include dbbackup/VERSION
66
recursive-include dbbackup/tests/testapp/blobs *

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Django Database Backup
2+
3+
[![Build Status](https://github.com/Archmonger/django-dbbackup/actions/workflows/build.yml/badge.svg)](https://github.com/Archmonger/django-dbbackup/actions)
4+
5+
This Django application provides management commands to help backup and restore your project database and media files with various storages such as Amazon S3, Dropbox, local file storage, or any Django-supported storage.
6+
7+
## Features
8+
9+
- Secure your backup with GPG signature and encryption.
10+
- Archive with compression.
11+
- Easily manage remote archiving.
12+
- Keep your development database up to date.
13+
- Set up automated backups with Crontab or Celery.
14+
- Manually backup and restore via Django management commands.
15+
16+
## Documentation
17+
18+
For more details, see the [official documentation](https://archmonger.github.io/django-dbbackup/).
19+
20+
## Why use DBBackup?
21+
22+
DBBackup gives you a simple yet robust interface to backup, encrypt, transmit, and restore your database and media.
23+
24+
In a few words, it is a pipe between your Django project and your backups. Behind the hood, your database's standard/best procedure is used to backup and restore data. Optionally, DBBackup can apply compression and/or encryption before transferring the data to nearly any storage system.

README.rst

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/Makefile

Lines changed: 0 additions & 153 deletions
This file was deleted.
Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
1-
Changelog
2-
=========
1+
# Changelog
32

4-
Unreleased
5-
----------
3+
## Unreleased
64

75
* Use environment variable for PostgreSQL password to prevent password leakage in logs/emails
86
* This repository has been transferred out of Jazzband due to logistical concerns.
97
* Drop support for end-of-life Python 3.7 and 3.8.
108
* Drop support for end-of-life Django 3.2.
11-
* Drop support for ``DBBACKUP_STORAGE`` AND ``DBBACKUP_STORAGE_OPTIONS`` settings, use Django's ``STORAGES['dbbackup']`` setting instead.
12-
* Implement new ``SqliteBackupConnector`` to backup SQLite3 databases using the ``.backup`` command (safe to execute on DBs with active connections).
9+
* Drop support for `DBBACKUP_STORAGE` AND `DBBACKUP_STORAGE_OPTIONS` settings, use Django's `STORAGES['dbbackup']` setting instead.
10+
* Implement new `SqliteBackupConnector` to backup SQLite3 databases using the `.backup` command (safe to execute on DBs with active connections).
11+
* Fix encryption support when using `gnupg==5.x`.
1312

14-
4.3.0 (2025-05-09)
15-
----------
13+
## 4.3.0 (2025-05-09)
1614

1715
* Add generic `--pg-options` to pass custom options to postgres.
1816
* Add option `--if-exists` for pg_dump command
1917
* Empty string as HOST for postgres unix domain socket connection is now supported.
2018
* Support Python 3.13 and Django 5.2
2119

22-
4.2.1 (2024-08-23)
23-
----------
20+
## 4.2.1 (2024-08-23)
2421

2522
* Add --no-drop option to dbrestore command to prevent dropping tables before restoring data.
2623
* Fix bug where sqlite dbrestore would fail if field data contains the line break character.
2724

28-
4.2.0 (2024-08-22)
29-
------------------
25+
## 4.2.0 (2024-08-22)
3026

3127
* Default HOST to localhost for postgres databases.
3228
* Add PostgreSQL Schema support
@@ -36,8 +32,7 @@ Unreleased
3632
* Remove usage of deprecated 'get_storage_class' function in newer Django versions
3733
* Add support for new STORAGES (Django 4.2+) setting under the 'dbbackup' alias
3834

39-
4.1.0 (2024-01-14)
40-
------------------
35+
## 4.1.0 (2024-01-14)
4136

4237
* Fix restore fail after editing filename
4338
* Drop python 3.6
@@ -47,15 +42,13 @@ Unreleased
4742
* Support Django 4.1, 4.2 and Python 3.11
4843
* Support Python 3.12 and Django 5.0
4944

50-
4.0.2 (2022-09-27)
51-
------------------
45+
## 4.0.2 (2022-09-27)
5246

5347
* support for prometheus wrapped dbs
5448
* Backup of SQLite fail if there are Virtual Tables (e.g. FTS tables).
5549
* Closes #460: python-gnupg version increase breaks unencrypt_file func…
5650

57-
4.0.1 (2022-07-09)
58-
---------------------
51+
## 4.0.1 (2022-07-09)
5952

6053
* As of this version, dbbackup is now within Jazzband! This version tests our Jazzband release CI, and adds miscellaneous refactoring/cleanup.
6154
* Fix GitHub Actions configuration
@@ -64,8 +57,7 @@ Unreleased
6457
* Jazzband transfer tasks
6558
* Refactoring and tooling
6659

67-
4.0.0b0 (2021-12-19)
68-
--------------------
60+
## 4.0.0b0 (2021-12-19)
6961

7062
* Fix RemovedInDjango41Warning related to default_app_config
7163
* Add authentication database support for MongoDB
@@ -77,12 +69,10 @@ Unreleased
7769
* Fix authentication error when postgres is password protected
7870
* Use exclude-table-data instead of exclude-table
7971
* Add support for exclude tables data in the command interface
80-
* Move author and version information into setup.py to allow building package in isolated environment (e.g. with the ``build`` package).
72+
* Move author and version information into setup.py to allow building package in isolated environment (e.g. with the `build` package).
8173
* Documentation fixes
8274

83-
84-
3.3.0 (2020-04-14)
85-
------------------
75+
## 3.3.0 (2020-04-14)
8676

8777
* Documentation fixes
8878
* "output-filename" in mediabackup command

0 commit comments

Comments
 (0)