Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 307de0e

Browse files
committed
furo theme
1 parent cc9dc29 commit 307de0e

File tree

13 files changed

+195
-391
lines changed

13 files changed

+195
-391
lines changed
File renamed without changes.

docs/conf.py

Lines changed: 11 additions & 385 deletions
Large diffs are not rendered by default.

docs/examples/drivebot.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
********************************************************************************
2+
Use DriveBot to upload a document to your Google Drive
3+
********************************************************************************
4+
5+
This example shows how to instantiate a `drivebot` authenticating through a web
6+
interface and upload a simple document.
7+
8+
9+
Configuration
10+
-------------
11+
The first time you use a `DriveBot` you probably want to use a web interface to
12+
authenticate. If you save your credentials (this will be saved in the `.tokens`
13+
folder) you don't have to do it again: just set `authentication='local` when you
14+
instantiate your bot.
15+
16+
In action
17+
---------
18+
19+
this is an example implementation:
20+
21+
.. literalinclude:: /../examples/drivebot.py
22+
:language: python

docs/examples/latexbot_cli.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
********************************************************************************
2+
use :code:`latexbot` from the command-line
3+
********************************************************************************
4+
5+
:code:`latexbot` helps you to set-up your machine to work with latex. The first
6+
step is to install everything you need. Instead of you spending time doing that
7+
let it do it. Later we will see how to convert documents and connect your
8+
overleaf project to your google drive.
9+
10+
Basics
11+
======
12+
13+
For detailed information about the different comands, type :code:`latexbot --help`:
14+
15+
.. code-block:: bash
16+
:emphasize-lines: 1
17+
18+
>>> latexbot --help
19+
20+
Usage: latexbot [OPTIONS] COMMAND [ARGS]...
21+
22+
bot to help with latex documents
23+
24+
Options:
25+
--help Show this message and exit.
26+
27+
Commands:
28+
configure Download dependencies and set everything up.
29+
convert-overleaf-to-docx Convert an overleaf project to a .docx file.
30+
convert-tex-to-docx Convert the .tex files in a folder to .docx.
31+
32+
33+
Install dependencies
34+
====================
35+
36+
:code:`latexbot` needs to know what you need. If your are new to this, probably
37+
you will need everything.
38+
39+
Run the following command:
40+
41+
.. code-block:: bash
42+
:emphasize-lines: 1
43+
44+
>>> latexbot configure --git=True --pandoc=True --miktex=True
45+
46+
47+
Convert a latex document to docx
48+
================================
49+
50+
This command uses `pandoc` in the background. This software is prettty awesome,
51+
but don't expect the conversion to be 100% perfect...
52+
53+
.. code-block:: bash
54+
:emphasize-lines: 1
55+
56+
>>> latexbot convert-tex-to-docx --input "C:\temp\...\my_tex_file.tex" --output= "C:\temp\...\my_folder"
57+
58+
Convert an overleaf project to google doc
59+
=========================================
60+
61+
Here we do even more: we get a project from overleaf and convert it directly to
62+
google doc, were you can use all the fancy collaboration/commenting features.
63+
64+
.. note::
65+
66+
remember to change the XXXXXXXXXX placeholder with a code of your oveleaf
67+
project.
68+
69+
.. code-block:: bash
70+
:emphasize-lines: 1
71+
72+
>>> latexbot convert-overleaf-to-docx XXXXXXXXXX --upload=True

docs/examples/latexbot_install.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
********************************************************************************
2+
Install all you need for latex
3+
********************************************************************************
4+
5+
This example shows how simple it is to install all the software you need to get
6+
started with latex, overleaf and all the other cool features of `latexbot`
7+
8+
9+
In action
10+
---------
11+
12+
this is an example implementation:
13+
14+
.. literalinclude:: /../examples/latexbot_install.py
15+
:language: python
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
********************************************************************************
2+
Connect overleaf and google docs
3+
********************************************************************************
4+
5+
Let's be honest...most people don't use latex and they want to get your document
6+
in a simple format as Google Doc. Let's be even more honest...if you landed here
7+
you are nerd and you are probaly using overleaf to write in latex.
8+
9+
How do you connect the two?! I guess by now you know the answer...there is a bot
10+
for it: `latexbot`
11+
12+
13+
In action
14+
---------
15+
16+
this is an example implementation:
17+
18+
.. literalinclude:: /../examples/latexbot_overleaf.py
19+
:language: python

docs/examples/telegrambot.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ some function completion). This is an example implementation (but check the
4545
If you are using the command line to run your code, then you can concatenate the
4646
:code:`telebot` at the end of your command, like this:
4747

48-
.. code-block:: cmd
48+
.. code-block:: console
4949
5050
dir && telebot send "done!"
5151

docs/getting_started.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,33 @@ deployment of our app?! You can do all this with :code:`codebots`...magic! :)
9696

9797
examples/sshbot.rst
9898
examples/deploybot.rst
99+
100+
access your cloud storage
101+
=========================
102+
103+
Sometimes you want to automate how you access, manipulate and edit your files in
104+
your cloud storage. `Drivebot` will help you with that! For now only
105+
Google Drive is supported, but soon more cloud providers will be supported.
106+
107+
.. toctree::
108+
:maxdepth: 2
109+
:titlesonly:
110+
:glob:
111+
112+
examples/drivebot.rst
113+
114+
latex made easy
115+
===============
116+
117+
Latex can be intimitading at the beginning. What to install? where to find the
118+
right software? how to convert to different formats? I had these questions
119+
(I still do...) and therefore I chose to create a bot to help me (and you!).
120+
121+
.. toctree::
122+
:maxdepth: 2
123+
:titlesonly:
124+
:glob:
125+
126+
examples/latexbot_cli.rst
127+
examples/latexbot_install.rst
128+
examples/latexbot_overleaf.rst

examples/drivebot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from codebots.bots import DriveBot
2+
3+
# create a DriveBot using a web authentication and store the credentials
4+
dbot = DriveBot('web', True)
5+
6+
dbot.create_and_upload(name='my_first_upload.txt',
7+
content='codebots is awesome!')

examples/latexbot_install.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from codebots.bots import LatexBot
2+
3+
lbot = LatexBot()
4+
lbot.install_dependencies(git=False, pandoc=True, miktex=True)

0 commit comments

Comments
 (0)