Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3461 commits
Select commit Hold shift + click to select a range
2c4cea3
standardize paragraph elements on examples pages
mattmakai Jan 19, 2020
c500144
add new web design resource
mattmakai Jan 20, 2020
e55991f
update and split out different code examples from ToC
mattmakai Jan 28, 2020
14fb2ce
new jupyter notebook resource
mattmakai Feb 6, 2020
dffd2bc
new task queue resource
mattmakai Feb 9, 2020
b43bcfa
new uwsgi resource
mattmakai Feb 9, 2020
a44ec41
new data and css resources
mattmakai Feb 15, 2020
d8bea0e
add new resources
mattmakai Feb 16, 2020
0eee471
add typedchoicefield django examples
mattmakai Feb 16, 2020
44ac66f
update changelog
mattmakai Feb 16, 2020
358e8f5
new html resource
mattmakai Feb 21, 2020
31c8820
new static analysis resource on the code metrics page
mattmakai Feb 22, 2020
12f88e7
new scipy resource
mattmakai Feb 22, 2020
d4df9aa
add datefield code examples for django forms
mattmakai Feb 23, 2020
b9589cc
update changelog
mattmakai Feb 23, 2020
015d06d
add new article on financial resources for software developers
mattmakai Mar 8, 2020
565859a
update changelog
mattmakai Mar 8, 2020
ae73a7b
fix sentence fragment in latest post
mattmakai Mar 8, 2020
95c7256
update link for dlint
mattmakai Mar 10, 2020
6824ae4
add django riffs podcast
mattmakai Mar 11, 2020
be3e7e8
add new resources for web design and dev
mattmakai Mar 13, 2020
60ef260
add jupyter notebook and postgresql resources
mattmakai Mar 14, 2020
70b882e
new django orm resource
mattmakai Mar 15, 2020
663c0ec
add twilio resources
mattmakai Mar 15, 2020
3c2c89f
new jupyter and django orm resources
mattmakai Mar 19, 2020
c6aacb9
add new webrtc and ORM resources
mattmakai Mar 20, 2020
4f6fdb5
new sqlalchemy resource
mattmakai Mar 20, 2020
3f0106b
new networking article
mattmakai Mar 21, 2020
b4b40f9
add javascript resource
mattmakai Mar 21, 2020
6a8168c
new django re source
mattmakai Mar 21, 2020
f9de1da
tons of new resources across the site
mattmakai Mar 22, 2020
8231625
new api resources
mattmakai Mar 22, 2020
27a4c94
new pandas resource
mattmakai Mar 25, 2020
34f1667
new tutorial, this one on pandas for covid data exploration
mattmakai Mar 28, 2020
ae96cb3
update meta page
mattmakai Mar 28, 2020
7e2b156
quick word tweak
mattmakai Mar 28, 2020
6aa67a5
add new tutorial on exporting pandas to sqlite databases
mattmakai Mar 30, 2020
228c3e5
update changelog
mattmakai Mar 30, 2020
948f188
Add Real Python Podcast to podcast list
dbader Apr 1, 2020
e183246
add django + celery resource
mjhea0 Apr 1, 2020
d6dd78d
clean up nginx page
mattmakai Apr 5, 2020
5beb25b
add web design resource
mattmakai Apr 18, 2020
3fb7c65
update changelog
mattmakai Apr 18, 2020
08dd0f6
Merge pull request #235 from mjhea0/patch-7
mattmakai Apr 23, 2020
309ff7f
Merge pull request #233 from dbader/patch-1
mattmakai Apr 23, 2020
34635fd
update changelog
mattmakai Apr 23, 2020
7c45dcd
add new javascript resource
mattmakai Apr 25, 2020
430272b
new shell resource
mattmakai Apr 25, 2020
f2a08dc
work on pandas code examples
mattmakai May 1, 2020
6cca37b
fixing a bunch of broken links
mattmakai May 1, 2020
338e81f
fixing a couple more broken links
mattmakai May 1, 2020
e846af3
update web design resources
mattmakai May 9, 2020
7da83e7
working on web design page
mattmakai May 9, 2020
286ff19
adding new sentry exception handling blog post
mattmakai May 25, 2020
8b9a521
adding new flask example code
mattmakai May 30, 2020
cfd095c
adding new session and render_template examples for flask
mattmakai May 31, 2020
f978222
new code examples for flask
mattmakai Jun 1, 2020
334b206
add flask-login to flask extensions examples
mattmakai Jun 3, 2020
65e1b35
add new examples from flaskex project
mattmakai Jun 4, 2020
9bfb00e
add new sessioninterface flask example
mattmakai Jun 4, 2020
5ce3cbd
add blueprints examples
mattmakai Jun 5, 2020
b56dab6
new data visualization resource
mattmakai Jun 5, 2020
bcac792
add a few more flask example code pages
mattmakai Jun 5, 2020
e8c036b
add badsignature flask examples
mattmakai Jun 5, 2020
443a71b
add start of sqlalchemy code examples
mattmakai Jun 6, 2020
79a5d10
fixing sortorder on flask examples
mattmakai Jun 13, 2020
bd78ee5
reorganize main landing page
mattmakai Jun 14, 2020
34864d7
tweaking sqlalchemy example code page
mattmakai Jun 14, 2020
e42cf14
add new numpy resource
mattmakai Jun 15, 2020
f4937af
tweak author bio
mattmakai Jun 18, 2020
141295e
add new data viz resource
mattmakai Jun 18, 2020
41a7209
fix broken link
mattmakai Jun 18, 2020
bac6706
tweaking a couple of broken links
mattmakai Jun 19, 2020
e919a9e
fixing example code inexact matches and adding new signals got reques…
mattmakai Jun 21, 2020
0b1c41f
add new django translation code examples
mattmakai Jun 21, 2020
bc39be2
new powershell resource and fixing issue on development environments …
mattmakai Jun 22, 2020
fa35063
adding new code examples
mattmakai Jun 23, 2020
dbf15a4
add description to http method funcs
mattmakai Jun 23, 2020
d906a94
adding some django core modules
mattmakai Jun 25, 2020
2e5ab26
working on sqlalchemy examples to make them better
mattmakai Jun 25, 2020
25a7e5e
adding more examples for flask applications
mattmakai Jun 26, 2020
d6b0fb1
adding flask badrequest examples
mattmakai Jun 26, 2020
532662c
add render template string flask example
mattmakai Jun 27, 2020
6fa03de
add badrequest
mattmakai Jun 27, 2020
4ba4ac2
adding flask security example code
mattmakai Jun 27, 2020
5996ef9
update changelog
mattmakai Jun 27, 2020
14a32f0
add more flask code examples
mattmakai Jun 27, 2020
301f48b
fixing some incomplete django code examples
mattmakai Jun 27, 2020
51d10c3
add new flask example code
mattmakai Jun 27, 2020
21d7bbf
add additional flask examples
mattmakai Jun 27, 2020
472fcf4
fixing some typos on flask pages
mattmakai Jun 27, 2020
e4828be
adding a couple of sqlalchemy extensions as to list
mattmakai Jun 28, 2020
ff285a2
working on sqlalchemy examples
mattmakai Jun 28, 2020
c68426a
update flask code examples
mattmakai Jun 29, 2020
97cd9a5
working on flask examples
mattmakai Jul 1, 2020
99ed9b2
add new blog post
mattmakai Jul 2, 2020
f26e53f
update changelog
mattmakai Jul 2, 2020
cf81748
add new flask example code
mattmakai Jul 2, 2020
30c1970
adding new sqlalchemy code examples
mattmakai Jul 3, 2020
6ec0918
reducing generated <pre> block sizes
mattmakai Jul 4, 2020
9648c2b
tweaking makefile to purge span tags from pre output
mattmakai Jul 4, 2020
134c5a3
tweak build process
mattmakai Jul 4, 2020
8e5c335
cleaning up further code examples page sizes
mattmakai Jul 4, 2020
314c2ba
tweak makefile regex
mattmakai Jul 4, 2020
9e1a257
update descriptions on django and flask examples pages to make them m…
mattmakai Jul 4, 2020
034a50c
working on more helpful descriptions for flask code examples
mattmakai Jul 4, 2020
4774121
cleaning up a few 404 links
mattmakai Jul 4, 2020
6e60a1e
adding further flask code examples
mattmakai Jul 4, 2020
5a10de0
fix several broken links
mattmakai Jul 4, 2020
f638e37
fix error with code highlighting on blog
mattmakai Jul 5, 2020
3b61df3
super quick post on bootstrap cdn with django templates
mattmakai Jul 5, 2020
4b6ffa0
fix typo link in blog post
mattmakai Jul 5, 2020
426d9b5
adding new sqlalchemy code examples
mattmakai Jul 5, 2020
1d088d7
add new django code examples
mattmakai Jul 6, 2020
ef4ee5a
update descriptions on pages
mattmakai Jul 6, 2020
e0ce2ac
add new flask example code
mattmakai Jul 7, 2020
4dfabf3
add additional sqlalchemy coding examples and new descriptions for fl…
mattmakai Jul 7, 2020
804ff0c
new django code examples
mattmakai Jul 7, 2020
855a77f
adding better flask descriptions
mattmakai Jul 8, 2020
046bd12
adding additional django examples
mattmakai Jul 8, 2020
2046d91
new django code examples
mattmakai Jul 8, 2020
3f18b98
update flask.globals g description
mattmakai Jul 8, 2020
da205be
add new django utils code exmaples
mattmakai Jul 9, 2020
1d17eee
working on code example explanations
mattmakai Jul 9, 2020
4c2da72
adding additional flask example descriptions
mattmakai Jul 9, 2020
bf57a4c
update flask descriptions
mattmakai Jul 10, 2020
20af5bf
adding more django code examples
mattmakai Jul 10, 2020
483f320
updating descriptions
mattmakai Jul 10, 2020
93f09a5
update flask examples descriptions
mattmakai Jul 10, 2020
37b15c4
adding related links to appropriate code examples
mattmakai Jul 10, 2020
6a85e11
new django example code
mattmakai Jul 11, 2020
bbbdbaf
fix typo in toc
mattmakai Jul 11, 2020
3c03d83
add new django extension
mattmakai Jul 11, 2020
270ea64
adding example code to django page
mattmakai Jul 11, 2020
a032987
adding additional django template examples
mattmakai Jul 12, 2020
3c67d08
Add Chowist to Django example projects
huangsam Jul 13, 2020
042bc4c
update makefile to combine sed's
mattmakai Jul 18, 2020
71829a2
add new post on django-user-visit
mattmakai Jul 19, 2020
4049a45
update and fix change log
mattmakai Jul 19, 2020
ecdbbed
fix typo in change log
mattmakai Jul 19, 2020
a6feea0
update some header images to minify them
mattmakai Jul 20, 2020
1719846
new flask examples
mattmakai Jul 21, 2020
f3536d2
adding new sqlalchemy examples
mattmakai Jul 24, 2020
76dfd97
update webhooks with new resources and update changelog
mattmakai Jul 24, 2020
83ba24d
new flask code examples and cross linking
mattmakai Jul 25, 2020
6dd83fa
fixing linking issue to author page from blog
mattmakai Jul 27, 2020
13eaa9d
working on fixing broken links
mattmakai Jul 28, 2020
6878def
fix typos
mattmakai Jul 28, 2020
a45f4b7
update link conversion in transform script
mattmakai Jul 29, 2020
ba6206d
working on sqlalchemy examples
mattmakai Jul 29, 2020
7ee77d2
add new sqlalchemy examples
mattmakai Jul 31, 2020
88a9b24
optimizing book build process
mattmakai Jul 31, 2020
1a310e8
fix typo on orms page
mattmakai Aug 1, 2020
60e25df
working on page about gpt-3
mattmakai Aug 2, 2020
6b61d59
working on gpt-3 page
mattmakai Aug 2, 2020
9d10075
adding new gpt-3 resources
mattmakai Aug 2, 2020
6771bac
add new gpt-3 resources
mattmakai Aug 2, 2020
bc8729c
working on debugging page
mattmakai Aug 3, 2020
5d7dc3d
update changelog
mattmakai Aug 3, 2020
b2a3172
replace subnav for b&v with supporters edition
mattmakai Aug 3, 2020
efc7e4f
add new gpt-3 resource
mattmakai Aug 4, 2020
cb70383
fix typo in gpt-3 page
mattmakai Aug 4, 2020
8354fa7
tweaking a couple of links
mattmakai Aug 5, 2020
abb5066
adding latest blog post
mattmakai Aug 9, 2020
71e04f3
update meta page
mattmakai Aug 9, 2020
dcf8020
tweak link on author page
mattmakai Aug 15, 2020
10c243f
add new post on using sentry with django
mattmakai Aug 23, 2020
32ad06f
update changelog and fix typo
mattmakai Aug 30, 2020
84a957e
Merge pull request #241 from huangsam/task/add-chowist-to-django
mattmakai Sep 3, 2020
1b47c23
new gpt-3 resource
mattmakai Sep 3, 2020
b586659
update flask examples with latest updates
mattmakai Sep 20, 2020
3615d3c
adding new numpy resources
mattmakai Oct 4, 2020
3e8c610
update videos page and change log
mattmakai Oct 5, 2020
46c761c
new blog post on speech to text transcriptions wiht assemblyai and flask
mattmakai Oct 10, 2020
0d43142
update changelog
mattmakai Oct 10, 2020
ce1a402
add new pandas resource
mattmakai Oct 20, 2020
7760b89
new pandas resource
mattmakai Oct 29, 2020
34b0c0a
new rq resource
mattmakai Oct 30, 2020
cebbc6e
new django orm and gpt-3 resources
mattmakai Oct 31, 2020
fbbafc2
add new django and react resource
mattmakai Nov 2, 2020
00de500
add new devops and containers resources
mattmakai Nov 8, 2020
409d0dc
new container resource
mattmakai Nov 22, 2020
9bf220c
working on new page for event streams
mattmakai Nov 27, 2020
0ff8428
new git resource
mattmakai Nov 29, 2020
957783c
new mongodb resource and event streams description
mattmakai Dec 3, 2020
58fb7b1
add logo
mattmakai Dec 5, 2020
4d7140a
working on bash page
mattmakai Dec 5, 2020
fa28d99
new event streams resource
mattmakai Dec 6, 2020
9430638
new vim and bash resources
mattmakai Dec 18, 2020
63a826d
new bash description and resources
mattmakai Dec 26, 2020
024c9d7
new networking and stripe resources
mattmakai Dec 30, 2020
f8095c8
new resources and flask extensions
mattmakai Jan 1, 2021
a76db92
fixing changelog page
mattmakai Jan 1, 2021
02bdeba
add new blog post
mattmakai Jan 5, 2021
3155ee3
add new env vars resource
mattmakai Jan 19, 2021
2d8f665
cleaning up old links that are no longer relevant
mattmakai Jan 27, 2021
2157dde
new code examples for django
mattmakai Jan 27, 2021
2498b2b
add new django extension
mattmakai Jan 30, 2021
58e6391
new examples pages and new web frameworks resource
mattmakai Feb 2, 2021
cb2cdbf
new gpt resource
mattmakai Feb 17, 2021
71624ae
add new vuejs and pandas resources
mattmakai Feb 21, 2021
d981a07
new webhooks resource
mattmakai Mar 10, 2021
d9f8176
update flask extensions example
mattmakai Mar 20, 2021
320edf3
add new flask example project
mattmakai Mar 21, 2021
6722f2f
update flask examples
mattmakai Mar 21, 2021
be01f80
tweak enterprise python page for clarity
mattmakai Mar 25, 2021
27ae3a6
add new resources and latest blog post
mattmakai Apr 23, 2021
d15c06a
new resources for jupyter
mattmakai May 22, 2021
5187a35
fixing broken links
mattmakai Jun 2, 2021
048ed83
fixing broken link rot
mattmakai Jun 2, 2021
a0fec62
removing 404 resources
mattmakai Jun 2, 2021
7d07a8c
removing many more 404 links
mattmakai Jun 3, 2021
37f0867
fixing more broken links
mattmakai Jun 3, 2021
71576f7
removing malicious link on a domain that was re-registered
mattmakai Jun 5, 2021
233fb4d
fixing a ton of broken links
mattmakai Jun 9, 2021
a8ad4f4
fixing more broken links
mattmakai Jun 10, 2021
25366e5
updating flask examples to remove broken flask-wtf link
mattmakai Jun 10, 2021
09010fd
fixing more broken links
mattmakai Jun 10, 2021
2d0ae8c
fixing more broken links
mattmakai Jun 11, 2021
ec696ce
fixing more broken links
mattmakai Jun 14, 2021
8cf4fd9
fixing two broken links
mattmakai Jun 16, 2021
5a0518b
fix a slew of broken links
mattmakai Jun 17, 2021
4d1aaa9
clean up more broken links
mattmakai Jun 17, 2021
7193d69
fixing a ton more broken or redirected resource links
mattmakai Jun 17, 2021
bc4c7dc
remove broken links
mattmakai Jun 22, 2021
2617df4
fixing more typos
mattmakai Jun 24, 2021
1eede9a
fixing more links
mattmakai Jun 25, 2021
b03fccc
removing additional broken links
mattmakai Jun 27, 2021
2c35cfb
remove broken performance link
mattmakai Jun 28, 2021
1136a5a
removing dead links
mattmakai Jun 29, 2021
29fe5f2
cleaning up more broken links
mattmakai Jul 1, 2021
7851a3f
fixing typos
mattmakai Jul 1, 2021
85e98bc
new blog post and update changelog
mattmakai Aug 24, 2021
e3d672e
fixing typo and some additional broken links
mattmakai Aug 25, 2021
49f5aa9
cleaning up broken or redirected links
mattmakai Aug 25, 2021
bd441b8
fixing more linkrot
mattmakai Aug 26, 2021
9812ac7
fix broken postgres link
mattmakai Aug 31, 2021
9f3631c
trying plausible analytics
mattmakai Sep 5, 2021
5215c1c
removing link rot
mattmakai Sep 13, 2021
91610ce
removing link rot
mattmakai Sep 14, 2021
3fdd429
fixing link rot
mattmakai Sep 14, 2021
82c8ed4
update heroku resources
mattmakai Sep 21, 2021
145033d
remove walled garden learning programming resource
mattmakai Sep 26, 2021
8bc5b24
remove plausible for now
mattmakai Oct 5, 2021
440d716
Created Oracle content
mw-orcl Feb 5, 2022
df0c15c
tweaking site layout to make it faster
mattmakai Feb 20, 2022
9f891cd
Merge pull request #271 from mw-orcl/master
mattmakai Mar 15, 2022
18c5871
removing GA, no more analytics needed. reducing page sizes
mattmakai Oct 27, 2022
7e61b2f
removing old 404 links
mattmakai Oct 29, 2022
daa9782
removing malicious link
mattmakai Apr 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.py[co]
*.swp
*.swo

# Packages
*.egg
Expand Down Expand Up @@ -28,3 +29,16 @@ pip-log.txt
.mr.developer.cfg

.DS_Store

# Emacs backups
*~

source/cache/
venv

generated/
output/

__pycache__/
.env
tempcontent/
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"[markdown]": {
"editor.rulers": [
80
]
}
}
42 changes: 42 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
=======
Credits
=======

Development Lead
----------------

* `mattmakai <https://github.com/mattmakai>`_

Contributors
------------

* `dhiatn <https://github.com/dhiatn>`_
* `mjhea0 <https://github.com/mjhea0>`_
* `haiiiiiyun <https://github.com/haiiiiiyun>`_
* `jllorencetti <https://github.com/jllorencetti>`_
* `monop <https://github.com/monop>`_
* `aoberoi <https://github.com/aoberoi>`_
* `proofit404 <https://github.com/proofit404>`_
* `flexd <https://github.com/flexd>`_
* `axd1967 <https://github.com/axd1967>`_
* `nullism <https://github.com/nullism>`_
* `ajschumacher <https://github.com/ajschumacher>`_
* `amol- <https://github.com/amol->`_
* `dhamaniasad <https://github.com/dhamaniasad>`_
* `Bogdanp <https://github.com/Bogdanp>`_
* `cenkalti <https://github.com/cenkalti>`_
* `ChristophKohl <https://github.com/ChristophKohl>`_
* `itsderek23 <https://github.com/itsderek23>`_
* `dolph <https://github.com/dolph>`_
* `luzfcb <https://github.com/luzfcb>`_
* `qgreg <https://github.com/qgreg>`_
* `TheJohnSub <https://github.com/TheJohnSub>`_
* `Jwpe <https://github.com/Jwpe>`_
* `kmarekspartz <https://github.com/kmarekspartz>`_
* `martey <https://github.com/martey>`_
* `MattKleinsmith <https://github.com/MattKleinsmith>`_
* `mattberjon <https://github.com/mattberjon>`_
* `oldhill <https://github.com/oldhill>`_
* `Parbhat <https://github.com/Parbhat>`_
* `rlaszlo <https://github.com/rlaszlo>`_
* `huangsam <https://github.com/huangsam>`_
66 changes: 66 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
============
Contributing
============

Contributions are welcome and greatly appreciated!


Fix Typos, Grammar Errors, etc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Create pull requests at
https://github.com/makaimc/fullstackpython.com/pulls.


Submit Feedback
~~~~~~~~~~~~~~~

The best way to send feedback is to file an issue at
https://github.com/makaimc/fullstackpython.com/issues.


Get Started!
------------

If you're not familiar with `Pelican <http://docs.getpelican.com/>`_, check out the blog post on
`Getting Started with Pelican and GitHub Pages <http://www.mattmakai.com/introduction-to-pelican.html>`_.

**Ready to contribute? Here's how to set up Full Stack Python for local development.**

1. Fork the `fullstackpython.com <https://github.com/makaimc/fullstackpython.com>`_ repo on GitHub.

2. Clone your fork locally::

$ git clone git@github.com:your_name_here/fullstackpython.com.git fsp

3. Install your local copy into a virtualenv and set up your fork for local development::

$ virtualenv --no-site-packages venvs/fsp
$ source venvs/fsp/bin/activate
$ cd fsp

4. Install the requirements::

$ pip install -r requirements.txt

Note: make changes to the source/content/pages/\*.rst files then execute a
*make run* command from the source/ directory.

5. Commit your changes and push your branch to GitHub::

$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin gh-pages

6. Submit a pull request through the GitHub website.

**Keep your fork in Sync**

1. To keep your fork in sync with the original repo, add an `upstream remote <https://help.github.com/articles/configuring-a-remote-for-a-fork/>`_::

$ git remote add upstream git@github.com:makaimc/fullstackpython.com.git

2. Sync your repo with the original repo::

$ git fetch upstream
$ git merge upstream/gh-pages
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 Matthew Makai

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
59 changes: 59 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
run:
pelican -t theme -s settings.py -o generated/updated_site content
cp -R static-html/* generated/updated_site/
cp -R redirects/* generated/updated_site/
cp -R static/* generated/updated_site/
sed -i '' 's/\(^.*~~.*$$\)/<span class="highlight">\1<\/span>/g' generated/updated_site/pages/*.html
sed -i '' 's/\(^.*~~.*$$\)/<span class="highlight">\1<\/span>/g' generated/updated_site/blog/*.html
sed -i '' 's/~~//g' generated/updated_site/pages/*.html
cp generated/updated_site/pages/* generated/updated_site/
sed -i '' 's/~~//g' generated/updated_site/blog/*.html


prod: run
rm -rf generated/updated_site/pages/
sed -i '' 's/<span class="k">\(.[a-zA-Z0-9()_]*\)<\/span>/\1/g; s/<span class="n">\(.[a-zA-Z0-9 ()_]*\)<\/span>/\1/g; s/<span class="o">\(.[a-zA-Z0-9 ()_.~*=&;/-]*\)<\/span>/\1/g; s/<span class="p">\(.[][a-zA-Z0-9 ()_,&;:#{}]*\)<\/span>/\1/g; s/<span class="mi">\(.[0-9]*\)<\/span>/\1/g; s/<span class="sa">\(.[a-zA-Z0-9 ()_]*\)<\/span>/\1/g; s/<span class="vm">\(.[a-zA-Z0-9 ()_]*\)<\/span>/\1/g; s/<span class="ow">\(.[a-zA-Z0-9()_]*\)<\/span>/\1/g; s/<span class="nb">\(.[a-zA-Z0-9 ()_.]*\)<\/span>/\1/g; s/<span class="nd">\(.[a-zA-Z0-9 ()_.]*\)<\/span>/\1/g; s/<span class="ne">\(.[a-zA-Z0-9 ()_.]*\)<\/span>/\1/g; s/<span class="nn">\(.[a-zA-Z0-9 ()_.]*\)<\/span>/\1/g; s/<span class="kn">\(.[a-zA-Z0-9 ()_]*\)<\/span>/\1/g; s/<span class="bp">\(.[][a-zA-Z0-9 ()_,&;:#{}]*\)<\/span>/\1/g; s/<span class="nc">\(.[][a-zA-Z0-9 /()_,.&^;:+#{}*!%-]*\)<\/span>/\1/g; s/<span class="nf">\(.[][a-zA-Z0-9 /()_,.&^;:+#{}*!%-]*\)<\/span>/\1/g; s/<span class="fm">\(.[][a-zA-Z0-9 /()_,.&^;:+#{}*!%-]*\)<\/span>/\1/g; s/<span class="nt">\(.[][a-zA-Z0-9 /()_,.&^;:+#{}*!%-]*\)<\/span>/\1/g; s/<span class="s1">\(.[][a-zA-Z0-9 /()_,.&^\\\;:+#{}~*@`!?%-]*\)<\/span>/\1/g; s/<span class="si">\(.[][a-zA-Z0-9 /()_,.&^;:+#{}*!%-]*\)<\/span>/\1/g; s/<span class="sd">\(.[][a-zA-Z0-9 /()_,.&^\\\;:+#{}~*@`!?%-]*\)<\/span>/\1/g; s/<span class="s2">\(.[][a-zA-Z0-9 /\\\()_,.&$^;:+#{}|=~*@`!?%-]*\)<\/span>/\1/g; s/<span class="c1">\(.[][a-zA-Z0-9 /()_,.&^;:+#{}*@`!%-]*\)<\/span>/\1/g; s/<span class="o"><\/span>//g; s/<span class="s2"><\/span>//g' generated/updated_site/*.html generated/updated_site/blog/*.html


bookbuild:
mkdir -p tempcontent/pages
cp -R content/pages/0* tempcontent/pages
cp -R content/pages/meta tempcontent/pages
python transform_book.py pdf
pelican -t theme -s book_settings.py -o generated/book tempcontent
cp -R static-html/* generated/book/
cp -R static/* generated/book/
rm -rf generated/book/pages
rm -rf tempcontent


pdf: bookbuild
sed -i '' 's/\(^.*~~.*$$\)/<span class="highlight-line">\1<\/span>/g' generated/book/pdf-book.html
sed -i '' 's/"\/img\//"img\//g' generated/book/pdf-book.html
sed -i '' 's/~~//g' generated/book/pdf-book.html
cd generated/book; prince pdf-book.html -o full_stack_python.pdf


epub: bookbuild
sed -i '' 's/\(^.*~~.*$$\)/<\/pre><pre class="highlight-line">\1<\/pre><pre>/g' generated/book/epub-book.html
sed -i '' 's/"\/img\//"img\//g' generated/book/epub-book.html
sed -i '' 's/~~//g' generated/book/epub-book.html
cd generated/book; pandoc -f html epub-book.html -t epub3 --metadata title="Full Stack Python" --epub-metadata=epub-metadata.xml --epub-cover-image=img/book/cover-a4.jpg --toc-depth=3 --css=theme/css/epub.css -o full_stack_python.epub


mobi: epub
cd generated/book; kindlegen full_stack_python.epub -o full_stack_python.mobi


update:
python update_s3.py
rm -rf generated/current_site
cp -R generated/updated_site generated/current_site


wc:
wc content/pages/*/* content/posts/*


init:
pip install -r requirements.txt
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
See the [gh-pages](https://github.com/makaimc/fullstackpython.github.com/tree/gh-pages) branch for source code.
This repository contains the source code for
[Full Stack Python](https://www.fullstackpython.com/).

34 changes: 34 additions & 0 deletions book_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
AUTHOR = u'Matthew Makai'
SITENAME = u'Full Stack Python'
SITEURL = 'https://www.fullstackpython.com'
TIMEZONE = 'America/New_York'

GITHUB_URL = 'https://github.com/mattmakai/fullstackpython.com'
PDF_GENERATOR = False
DIRECT_TEMPLATES = ('pdf-book', 'epub-book')
PLUGINS = ['plugins.pelican-toc',]

ARTICLE_SAVE_AS = 'blog/{slug}.html'
SITEMAP_SAVE_AS = 'sitemap.xml'

FEED_DOMAIN = 'https://www.fullstackpython.com'
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

LINKS = ()

MARKUP = ('rst', 'markdown',)

SOCIAL = (
('Email', 'mailto:matthew.makai@gmail.com'),
('GitHub', 'https://github.com/mattmakai'),
('Twitter', 'http://twitter.com/mattmakai'),
)

PROJECTS = ()

JINJA_EXTENSIONS = (['jinja2.ext.autoescape',])
Loading