Skip to content

Commit d01b430

Browse files
committed
update
1 parent 916628d commit d01b430

116 files changed

Lines changed: 3161 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.DS_Store‎

6 KB
Binary file not shown.

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*pyc
2+
output

‎Dockerfile‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:latest
2+
3+
RUN apt-get update && apt-get -y install python3-pip make bash git
4+
RUN pip3 install pelican pelican-youtube markdown pelican-gist beautifulsoup4
5+
RUN git clone https://github.com/amitsaha/pelican-svbhack /tmp/pelican-svbhack
6+
RUN git clone --recursive https://github.com/getpelican/pelican-plugins /tmp/pelican-plugins
7+
WORKDIR /site
8+
ENTRYPOINT ["make", "build"]

‎Makefile‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
PY?=python
2+
PELICAN?=pelican
3+
PELICANOPTS=
4+
5+
BASEDIR=$(CURDIR)
6+
INPUTDIR=$(BASEDIR)/content
7+
OUTPUTDIR=$(BASEDIR)/output
8+
CONFFILE=$(BASEDIR)/pelicanconf.py
9+
PUBLISHCONF=$(BASEDIR)/publishconf.py
10+
11+
PELICANOPTS += -D
12+
13+
help:
14+
@echo 'Makefile for a pelican Web site '
15+
@echo ' '
16+
@echo 'Usage: '
17+
@echo ' make test (re)generate the web site, starts a HTTP Server on 8000'
18+
@echo ' make clean remove the generated files '
19+
@echo ' make github upload the web site '
20+
@echo ' '
21+
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html'
22+
@echo ' '
23+
24+
test:
25+
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
26+
cd $(OUTPUTDIR); python -m SimpleHTTPServer
27+
28+
clean:
29+
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
30+
31+
build:
32+
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
33+
34+
# Commit changes in site, push, update master, commit, push
35+
# Not used any more since we use travis' github pages
36+
# deployment option
37+
38+
github:
39+
cp -r $(OUTPUTDIR) /tmp/
40+
git add -A .
41+
git commit -m "New post/page" || true
42+
git push -f origin site
43+
git checkout master
44+
cp -r /tmp/output/* .
45+
git add -A .
46+
git commit -m "New build" || true
47+
git push -f origin master
48+
rm -rf /tmp/output
49+
50+
.PHONY: html help clean regenerate serve devserver build ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Notes for future self
2+
3+
4+
1. Edit on site
5+
2. build using ./build.sh
6+
3. copy output somewhere
7+
4. git checkout master
8+
5. copy the output from somewhere to master
9+
6. git push

‎build.sh‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
docker build \
4+
--build-arg git_username="Amit Saha" \
5+
--build-arg git_useremail="amitsaha.in@gmail.com" \
6+
--build-arg gid=`id -g` \
7+
--build-arg group=`id -g -n` \
8+
--build-arg uid=`id -u` \
9+
--build-arg user=`id -u -n` \
10+
-t amitsaha/pelican .
11+
12+
docker run -v `pwd`:/site:Z -t amitsaha/pelican
13+
14+
# publish
15+
16+
# cp output to /tmp/
17+
# git checkout master
18+
# cp -r /tmp/output/* .

‎cache/ArticlesGenerator-Readers‎

3.88 KB
Binary file not shown.

‎cache/PagesGenerator-Readers‎

7.67 KB
Binary file not shown.

‎content/.DS_Store‎

6 KB
Binary file not shown.

‎content/anaconda-4.0-sympy-1.0.rst‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
SymPy 1.0 and Anaconda 4.0 releases
2+
===================================
3+
4+
:date: 2016-04-11 19:50
5+
:category: updates
6+
:slug: sympy-1.0-anaconda-4.0
7+
:summary: sympy 1.0 and Anaconda 4.0
8+
9+
`SymPy 1.0 <http://sympy.org>`__ was released recently and `Anaconda 4.0
10+
<https://www.continuum.io/blog/developer-blog/anaconda-4-release>`__
11+
was just released. I tried all the `sample solutions
12+
<http://doingmathwithpython.github.io/trying-out-solutions.html>`__
13+
and everything works as expected. The `chapter programs
14+
<http://doingmathwithpython.github.io/pages/programs.html>`__ should
15+
keep working as well.
16+
17+
You can get both the updates when you install Anaconda 4.0 or updated
18+
your existing Anaconda installation:
19+
20+
.. code::
21+
22+
$ conda update conda
23+
$ conda update anaconda
24+
25+
I have so far verified both on Mac OS X and Linux. If you find any
26+
issues on Windows, please email me at
27+
``doingmathwithpython@gmail.com`` or post your query/tip to any of the
28+
following community forums:
29+
30+
- `Facebook page <https://www.facebook.com/doingmathwithpython>`__
31+
- `G+ Community <https://plus.google.com/u/0/communities/113121562865298236232>`__

0 commit comments

Comments
 (0)