Explorar o código

working on docs

Oliver Fabel hai 1 ano
pai
achega
5e5f46214f
Modificáronse 8 ficheiros con 93 adicións e 4 borrados
  1. 2 1
      .gitignore
  2. 3 3
      Makefile
  3. BIN=BIN
      docs/pages/assets/favicon.png
  4. BIN=BIN
      docs/pages/assets/logo.png
  5. 37 0
      docs/pages/conf.py
  6. 48 0
      docs/pages/index.rst
  7. 1 0
      docs/pages/license.rst
  8. 2 0
      requirements.txt

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
-dist/*
+/dist/
+/venv/
 .vscode
 .clang-format
 .clangd

+ 3 - 3
Makefile

@@ -14,6 +14,6 @@ launch: build
 clean:
 	ufbt -c
 
-.PHONY: publish
-publish: build
-	./publish.sh fap-release
+.PHONY: pages
+pages:
+	source venv/bin/activate && sphinx-build docs/pages dist/pages

BIN=BIN
docs/pages/assets/favicon.png


BIN=BIN
docs/pages/assets/logo.png


+ 37 - 0
docs/pages/conf.py

@@ -0,0 +1,37 @@
+project = 'uPython'
+copyright = '2024, Oliver Fabel'
+author = 'Oliver Fabel'
+release = '1.0.0'
+language = 'en'
+
+extensions = [
+    'sphinx.ext.autodoc',
+    'myst_parser'
+]
+source_suffix = {
+    '.rst': 'restructuredtext',
+    '.md': 'markdown'
+}
+
+templates_path = [
+    'templates'
+]
+exclude_patterns = []
+include_patterns = [
+    '**'
+]
+
+html_theme = 'alabaster'
+html_theme_options = {
+    'extra_nav_links': {
+        'Source Code': 'https://www.github.com/ofabel/mp-flipper',
+        'Bugtracker': 'https://www.github.com/ofabel/mp-flipper/issues',
+        'Releases': 'https://lab.flipper.net/apps/upython'
+
+    }
+}
+html_static_path = [
+    'static'
+]
+html_logo = 'assets/logo.png'
+html_favicon = 'assets/favicon.png'

+ 48 - 0
docs/pages/index.rst

@@ -0,0 +1,48 @@
+.. toctree::
+   :hidden:
+   :maxdepth: 2
+
+   quickstart
+   installation
+   users-guide
+   best-practice
+   architecture
+   reference
+   Changes </changes>
+   License </license>
+
+MicroPython on Flipper Zero
+===========================
+
+.. image:: https://img.shields.io/github/license/ofabel/mp-flipper
+   :alt: License
+
+.. image:: https://img.shields.io/github/v/tag/ofabel/mp-flipper
+   :alt: Version
+
+.. image:: https://img.shields.io/github/issues/ofabel/mp-flipper
+   :alt: Issues
+
+A `MicroPython <https://github.com/micropython/micropython>`_ port for the famous `Flipper Zero <https://flipperzero.one/>`_.
+No need to learn C: Use your favourite programming language to create apps, games and scripts.
+
+Features
+--------
+
+* Support for basic language constructs like functions, classes, loops, ...
+* Access the Flipper's hardware: buttons, speaker, LED & screen light, ...
+* No custom firmware required, so no risk to brick your Flipper.
+
+How to Start
+------------
+
+1. Install the application from the `Flipper Lab <https://lab.flipper.net/apps/upython>`_ on your Flipper device.
+2. Write some Python code or use one of the provided examples.
+3. Use the `qFlipper <https://flipperzero.one/update>`_ application to upload the code to your Flipper's SD card.
+4. Use the **uPython** application on your Flipper to execute your Python script.
+
+License
+-------
+
+The uPython application is published under the :doc:`MIT </license>` license.
+

+ 1 - 0
docs/pages/license.rst

@@ -0,0 +1 @@
+.. include:: ../../LICENSE.txt

+ 2 - 0
requirements.txt

@@ -0,0 +1,2 @@
+Sphinx==8.0.2
+myst-parser==4.0.0