Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs and docstrings #8

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# MiniPages

[![Apache-2.0](https://img.shields.io/pypi/l/django-minipages)](https://github.com/pascalpepe/django-minipages/blob/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/django-minipages)](https://pypi.org/project/django-minipages/)
[![Python](https://img.shields.io/pypi/pyversions/django-minipages)](https://pypi.org/project/django-minipages/)
[![Django](https://img.shields.io/pypi/djversions/django-minipages?label=django)](https://pypi.org/project/django-minipages/)
[![CI](https://github.com/pascalpepe/django-minipages/actions/workflows/ci.yml/badge.svg)](https://github.com/pascalpepe/django-minipages/actions/workflows/ci.yml)

MiniPages is a Django application for managing simple web pages.


## Status

This project is still in its initial development stage. Anything may change at
any time.


## Documentation


- [Getting started](https://github.com/pascalpepe/django-minipages/blob/main/docs/getting-started.rst)
- [Module references](https://github.com/pascalpepe/django-minipages/tree/main/docs/references)
- [Release notes](https://github.com/pascalpepe/django-minipages/tree/main/docs/releases)


## License

This project is licensed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
66 changes: 0 additions & 66 deletions README.rst

This file was deleted.

37 changes: 37 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# MiniPages documentation

The documentation of MiniPages is written
in [reStructuredText](https://docutils.sourceforge.io/rst.html) and built
with [Sphinx](https://www.sphinx-doc.org/en/master/). You can read it:

- at https://github.com/pascalpepe/django-minipages/tree/main/docs,
- in plain text in this directory,
- or by building a local version on your computer.


## Building a local version

1. Get the project source code:

```bash
git clone https://github.com/pascalpepe/django-minipages
cd django-minipages/
```

2. Install dependencies (preferably within a [Python virtual environment](https://docs.python.org/3/library/venv.html)):

```bash
python -m pip install -e .
python -m pip install -r docs/requirements.txt
```

3. Build the documentation:

```bash
cd docs/
make html
```

4. The HTML pages can be found in the `_build/` directory. Open
`index.html` in your favorite web browser to start reading the
documentation.
40 changes: 0 additions & 40 deletions docs/README.rst

This file was deleted.

4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

project = "MiniPages"
author = "Pascal Pepe"
copyright = f"2017-2023, {author}"
copyright = f"2017-2024, {author}"
release = "0.2.0"


Expand All @@ -37,7 +37,7 @@
]

templates_path = []
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "README.rst"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "README.md"]


# -- Options for HTML output -------------------------------------------------
Expand Down
12 changes: 7 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ MiniPages documentation

MiniPages is a reusable Django application for managing simple web pages.

:Home: https://github.com/pascalpepe/django-minipages
:Documentation: https://github.com/pascalpepe/django-minipages/tree/main/docs
:Source code: https://github.com/pascalpepe/django-minipages
:Issue tracker: https://github.com/pascalpepe/django-minipages/issues

.. note::

This project is still in its initial development stage. Anything may change
Expand All @@ -25,3 +20,10 @@ Contents
references/index
releases/index
license

.. toctree::
:hidden:
:caption: Project Links

GitHub <https://github.com/pascalpepe/django-minipages>
PyPI <https://pypi.org/project/django-minipages>
2 changes: 1 addition & 1 deletion docs/releases/0.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Documentation
=============

- Changed Sphinx documentation theme to `Furo <https://pradyunsg.me/furo/>`_.
- Updated Sphinx to version 6.1.
- Updated Sphinx to version 7.2.
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Sphinx==6.1.*
furo==2022.12.7
Sphinx==7.2.*
furo==2024.1.29
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "django-minipages"
description = "Django application for managing simple web pages."
readme = "README.rst"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "Apache-2.0" }
keywords = ["django", "pages"]
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# English translation of MiniPages.
#
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# French translation of MiniPages.
#
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/minipages/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017-2023 Pascal Pepe
# Copyright 2017-2024 Pascal Pepe
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading