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

New documentation system #1766

Merged
merged 41 commits into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d60061e
Revise document build system
mikee47 Jul 17, 2019
538e1d6
Update main makefiles
mikee47 Jul 17, 2019
969131a
Add docs to travis build
mikee47 Jul 16, 2019
ce111e1
Import images, convert existing text (including Wiki) to reStructured…
mikee47 Jul 8, 2019
79e08f0
Home: Edit contents readme into index.rst
mikee47 Jul 15, 2019
b7ef281
Emulator: update with note on Windows requirements
mikee47 Jul 15, 2019
2fcdd38
Add `Information` section, pull in debug images
mikee47 Jul 15, 2019
dc716a6
Add upgrade notes
mikee47 Jul 16, 2019
bd1ed92
Add `experimental` section
mikee47 Jul 15, 2019
13734d5
Add `tools` section
mikee47 Jul 16, 2019
2f767fd
Add `troubleshooting` section
mikee47 Jul 15, 2019
207f75d
Add `contribute` section, include new page on documentation system
mikee47 Jul 15, 2019
1f51b62
Edit coding style guide
mikee47 Jul 16, 2019
de3d9e4
Add `Quick Start` section, update guides
mikee47 Jul 17, 2019
7244df1
Add `api` section (to be completed), update Doxygen config
mikee47 Jul 15, 2019
d5ef8e5
Fix most doxygen warnings in code comments
mikee47 Jul 16, 2019
c36c2ee
Components: Move content from `features` into README files
mikee47 Jul 15, 2019
d6b5bff
Components: Add README files
mikee47 Jul 15, 2019
5edb1f7
Libraries: Pull in README files and fix titles
mikee47 Jul 17, 2019
1edab00
Libraries: Track down missing README files
mikee47 Jul 14, 2019
3c9a319
Samples: Move images into sample directories
mikee47 Jul 15, 2019
2aba79c
Samples: About to convert .md into .rst
mikee47 Jul 11, 2019
3560875
Samples: .md -> .rst
mikee47 Jul 15, 2019
8e8d032
Samples: Update README.rst files
mikee47 Jul 15, 2019
4b34797
Samples: Add 'todo' readme files for remaining samples
mikee47 Jul 11, 2019
3ad7d64
Reorganization of the content. The goal is to be able to learn about …
slav-at-attachix Jul 18, 2019
01ac58d
Minor changes to the content.
slav-at-attachix Jul 19, 2019
dec2a2a
Revise `HttpClient` sample readme to reflect new build system.
mikee47 Jul 18, 2019
8c13954
Minor doc fixes
mikee47 Jul 18, 2019
8e9e442
Add logo
mikee47 Jul 19, 2019
9a6c809
Generate index file containing reference information
mikee47 Jul 19, 2019
5a5412b
Move `Yeelight` into `Libraries`
mikee47 Jul 20, 2019
033a42d
Update environment variable lists
mikee47 Jul 20, 2019
5e3b300
Add section on device configuration to Esp8266 getting-started page
mikee47 Jul 20, 2019
8789bc6
Update macos start
mikee47 Jul 20, 2019
7405a26
Move samples and libraries index into root source directory
mikee47 Jul 20, 2019
fd17b28
Update `Basic_Ssl`, `Echo_Ssl` and `HttpClient` sample readme.
mikee47 Jul 20, 2019
7889fe6
Removed unnecessary level and stale text.
slav-at-attachix Jul 20, 2019
6fe9e6a
Add 'about' page with license info.
mikee47 Jul 21, 2019
db311d6
Add doc comments to `Print` class
mikee47 Jul 21, 2019
a06d6ec
Replace `api` section with generated doxygen HTML, including graphs
mikee47 Jul 21, 2019
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
Prev Previous commit
Next Next commit
Samples: .md -> .rst
  • Loading branch information
mikee47 committed Jul 21, 2019
commit 3560875455b4ceea0f9ea0bf55933ac0d27e584a
7 changes: 5 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ Welcome to Sming's documentation
Sming is an Open Source framework for high efficiency WiFi SoC ESP8266
native development with C++ language.

.. image:: combine.png
:target: https://github.com/SmingHub/Sming/wiki/examples
|samples|_

.. |samples| image:: combine.png
.. _samples: samples/index.html


Summary
Expand Down Expand Up @@ -56,6 +58,7 @@ See the :doc:`Quick-start <quick-start/index>` page for your respective operatin
quick-start/index
host-emulator
features
samples/index
libraries/index
api/index
information/index
Expand Down
16 changes: 16 additions & 0 deletions docs/source/samples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
***************
Sample Projects
***************

Sming comes with a set of samples to illustrate and test various aspects
of the framework. Some are related to specific :doc:`/libraries/index`.

List of sample projects
=======================

.. toctree::
:glob:
:maxdepth: 1
:titlesonly:

/_inc/samples/*/README
17 changes: 0 additions & 17 deletions samples/Basic_SmartConfig/README.md

This file was deleted.

23 changes: 23 additions & 0 deletions samples/Basic_SmartConfig/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Smart Config sample
===================

Introduction
------------

SmartConfig is a mechanism to configure a device as quickly as possible
with the intermediate help of a smart phone and with least interaction
from a human as possible.

Basically your ESP device looks for Access Points (AP). When it finds an
AP with special signature it tries to extract data like SSID and
password from it. Meanwhile your smart phone tries to send that
information.

The example here shows how to use ESP_TOUCH method to do smart
configuration on the device. It is a C++ conversion of the C code that
Espressif provides in the SDK examples.

| What you will need also is the code that has to be run on your smart
phone. Espressif already released some sample code and you can try:
| \* Android - https://github.com/EspressifApp/EsptouchForAndroid \* iOS
- https://github.com/EspressifApp/EsptouchForIOS
48 changes: 0 additions & 48 deletions samples/Basic_Ssl/README.md

This file was deleted.

53 changes: 53 additions & 0 deletions samples/Basic_Ssl/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Basic SSL sample
================

Compilation
-----------

In Sming the SSL support is not enabled by default.

In order to enable it you should first recompile SmingFramework with
*ENABLE_SSL=1* directive. This can be done using the following commands:

.. code:: bash

cd <path-to-sming>/Sming
make clean
make ENABLE_SSL=1

Once you have enabled the SSL support in SmingFramework you can go
forward and compile your application with the same directive. For
example the Basic_Ssl project should be compiled with

.. code:: bash

cd <path-to-sming>/samples/Basic_Ssl
make clean
make ENABLE_SSL=1

Now you can flash your application to your ESP8266 device.

Debug Information
-----------------

If you want to see more debug information during compile type you should
add the directive *SSL_DEBUG=1*. A recompilation of SmingFramework with
SSL support and SSL dubug information can be done with the following
commands:

.. code:: bash

cd <path-to-sming>/Sming
make clean
make ENABLE_SSL=1 SSL_DEBUG=1

Slow SSL negotiation
--------------------

The initial SSL negotiation is CPU intensive. By default SmingFramework
switches the CPU frequency from 80 to 160 MHz. After the negotiation the
CPU is switched back to 80 MHz.

If your device is running on battery this can drain the battery much
faster. If you do not want the switch from 80 to 160 MHz to happen then
make sure to recompile SmingFramework with *SSL_SLOW_CONNECT* directive.
18 changes: 0 additions & 18 deletions samples/Basic_WebSkeletonApp/README.md

This file was deleted.

25 changes: 25 additions & 0 deletions samples/Basic_WebSkeletonApp/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Basic Web Skeleton sample
=========================

Introduction
------------

Basic application that can be used as a start point for some useful App.

Features:

- can setup wifi ssid and wifi password for STA (wifi client) mode
either from own AP or as connected to some wifi network
- demonstrate new way of catching wif-events with WifiEvents class
- if preconfigured wifi network is unreachable start AP named TyTherm
with hardcoded password (see source)
- can enable/disable STA (wifi client) mode
- own AP autodisable after successful connection to preconfigured wifi
network
- form population and sending is done with json+ajax
- demonstrate usage of getting raw http request body to be processed as
json
- demonstrate how to fill html template on client side with more
flexible than Smings Templating - JavaScript

App called TyTherm because it is base for TinY TermOmeter :)
18 changes: 0 additions & 18 deletions samples/Basic_WebSkeletonApp_LTS/README.md

This file was deleted.

25 changes: 25 additions & 0 deletions samples/Basic_WebSkeletonApp_LTS/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Basic Web Skeleton sample
=========================

Introduction
------------

Basic application that can be used as a start point for some useful App.

Features:

- can setup wifi ssid and wifi password for STA (wifi client) mode
either from own AP or as connected to some wifi network
- demonstrate new way of catching wif-events with WifiEvents class
- if preconfigured wifi network is unreachable start AP named TyTherm
with hardcoded password (see source)
- can enable/disable STA (wifi client) mode
- own AP autodisable after successful connection to preconfigured wifi
network
- form population and sending is done with json+ajax
- demonstrate usage of getting raw http request body to be processed as
json
- demonstrate how to fill html template on client side with more
flexible than Smings Templating - JavaScript

App called TyTherm because it is base for TinY TermOmeter :)
85 changes: 0 additions & 85 deletions samples/Basic_rBoot/README.md

This file was deleted.

Loading