Skip to content

Commit

Permalink
Add raw html command
Browse files Browse the repository at this point in the history
  • Loading branch information
zhen-upup committed Aug 13, 2021
1 parent 51eeb67 commit 831d328
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 2 deletions.
20 changes: 20 additions & 0 deletions docs/source/check_photos.rst
Expand Up @@ -5,13 +5,21 @@ Samba helps when you share and other devices access
your photo album. Steps:

1. Run the command to set up Samba service.

.. raw:: html

<run></run>

.. code-block::
sudo apt-get update
sudo apt-get install samba samba-common-bin
2. Configure Samba typing.

.. raw:: html

<run></run>

.. code-block::
Expand All @@ -22,6 +30,10 @@ your photo album. Steps:
Press ctrl+o to save what you modify in nano editor, ctrl+x to to exit.

Input the following content at the end of the file:

.. raw:: html

<run></run>

.. code-block::
Expand All @@ -33,13 +45,21 @@ Input the following content at the end of the file:
writable = yes
3. Restart Samba service.

.. raw:: html

<run></run>

.. code-block::
sudo service smbd restart
4. Add sharing account.

.. raw:: html

<run></run>

.. code-block::
Expand Down
14 changes: 13 additions & 1 deletion docs/source/conf.py
Expand Up @@ -65,7 +65,19 @@
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_js_files = [
'https://ezblock.cc/readDocFile/topHead.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/ace.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/ext-language_tools.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/theme-chrome.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/mode-python.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/mode-sh.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/monokai.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/xterm.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/FitAddon.js',
'https://ezblock.cc/readDocFile/readTheDoc/src/js/readTheDocIndex.js',

]
html_css_files = [
'https://ezblock.cc/readDocFile/topHead.css',
]
'https://ezblock.cc/readDocFile/readTheDoc/src/css/index.css',
'https://ezblock.cc/readDocFile/readTheDoc/src/css/xterm.css',
]
20 changes: 20 additions & 0 deletions docs/source/diy_function.rst
Expand Up @@ -5,12 +5,20 @@ Rascam comes with many interesting functions that you
can try one by one or combine them to be new ones.

1. Enter the folder and list the example files.

.. raw:: html

<run></run>

.. code-block::
cd /home/pi/rascam/example
2. List the example files.

.. raw:: html

<run></run>

.. code-block::
Expand All @@ -25,6 +33,10 @@ can try one by one or combine them to be new ones.
.. image:: media/19.jpg

3. You can run the python codes by the following command.

.. raw:: html

<run></run>

.. code-block::
Expand Down Expand Up @@ -121,12 +133,20 @@ browsers. Steps are:
1. Execute step 1~8 of \"take_picture_and_upload.py\". If steps have been executed, skip the operation.

2. Go into the path:

.. raw:: html

<run></run>

.. code-block::
cd /home/pi/rascam/example/web_control
3. Run the python code:

.. raw:: html

<run></run>

.. code-block::
Expand Down
16 changes: 16 additions & 0 deletions docs/source/initialize_the_environment.rst
Expand Up @@ -5,6 +5,10 @@ Initialize the environment before playing the Rascam. The
methods are as follows.

1. Change directory to /home/pi.

.. raw:: html

<run></run>

.. code-block::
Expand All @@ -17,18 +21,30 @@ methods are as follows.
here is to go to the path /home/pi/.

2. Clone the repository from github.

.. raw:: html

<run></run>

.. code-block::
git clone https://github.com/sunfounder/rascam.git
3. Enter the folder rascam

.. raw:: html

<run></run>

.. code-block::
cd /home/pi/rascam
4. Start up the initialization function.

.. raw:: html

<run></run>

.. code-block::
Expand Down
Binary file modified docs/source/media/2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/source/start_on_boot.rst
Expand Up @@ -5,6 +5,10 @@ Modify crontab to make Rascam start the camera program
on boot. Steps are:

1. Run the command.

.. raw:: html

<run></run>

.. code-block::
Expand All @@ -15,6 +19,10 @@ on boot. Steps are:
At the first time you execute the command, you need to select an editor and then choose nano.

2. Input the following content at the end of the file.

.. raw:: html

<run></run>

.. code-block::
Expand All @@ -27,12 +35,20 @@ on boot. Steps are:
on boot”, back to the file and delete this line.

3. Then save and exit and you should see the message.

.. raw:: html

<run></run>

.. code-block::
crontab: installing new crontab
4. Reboot.

.. raw:: html

<run></run>

.. code-block::
Expand Down
14 changes: 13 additions & 1 deletion docs/source/take_a_photo.rst
Expand Up @@ -5,13 +5,21 @@ You can make the LCD a viewfinder and press the shutter
to take a photo. The methods:

1. Enter the folder.


.. raw:: html

<run></run>

.. code-block::
cd /home/pi/rascam/example
2. Run the program code.


.. raw:: html

<run></run>

.. code-block::
Expand All @@ -23,6 +31,10 @@ to take a photo. The methods:


The shot photos are stored at this path.

.. raw:: html

<run></run>

.. code-block::
Expand Down

0 comments on commit 831d328

Please sign in to comment.