Skip to content

Commit cd4b0e1

Browse files
author
chestercheng
committed
first commit
0 parents  commit cd4b0e1

Some content is hidden

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

42 files changed

+74401
-0
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__pycache__/
2+
output/
3+
.venv/

Diff for: Makefile

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
PY?=python3
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+
12+
DEBUG ?= 0
13+
ifeq ($(DEBUG), 1)
14+
PELICANOPTS += -D
15+
endif
16+
17+
RELATIVE ?= 0
18+
ifeq ($(RELATIVE), 1)
19+
PELICANOPTS += --relative-urls
20+
endif
21+
22+
help:
23+
@echo 'Makefile for a pelican Web site '
24+
@echo ' '
25+
@echo 'Usage: '
26+
@echo ' make html (re)generate the web site '
27+
@echo ' make clean remove the generated files '
28+
@echo ' make regenerate regenerate files upon modification '
29+
@echo ' make devserver [PORT=8000] serve and regenerate together '
30+
@echo ' '
31+
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
32+
@echo 'Set the RELATIVE variable to 1 to enable relative urls '
33+
@echo ' '
34+
35+
html:
36+
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
37+
38+
clean:
39+
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
40+
41+
regenerate:
42+
$(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
43+
44+
45+
devserver:
46+
ifdef PORT
47+
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT)
48+
else
49+
$(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
50+
endif
51+
52+
53+
deploy: html purgecss
54+
55+
56+
NPX?=npx
57+
TAILWINDBASE?=tailwind/styles.css
58+
TAILWINDCONF?=tailwind/tailwind.config.js
59+
CSSFILE?=theme/static/css/main.css
60+
PURGECSSCONF?=tailwind/purgecss.config.js
61+
62+
63+
css:
64+
$(NPX) tailwindcss build $(TAILWINDBASE) -c $(TAILWINDCONF) -o $(CSSFILE)
65+
66+
67+
purgecss:
68+
$(NPX) purgecss --config $(PURGECSSCONF) --css $(CSSFILE) -o output/theme/css
69+
70+
71+
.PHONY: html help clean regenerate devserver deploy css purgecss

Diff for: Pipfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[dev-packages]
7+
8+
[packages]
9+
pelican = "==4.2.0"
10+
markdown = "==3.1.1"
11+
12+
[requires]
13+
python_version = "3.7"

Diff for: Pipfile.lock

+137
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: README.rst

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
==============
2+
Sciwork portal
3+
==============
4+
5+
This repository is for the website for the sciwork portal. Check-ins
6+
to the repository will be automatically deployed to the website by
7+
`Netlify <https://www.netlify.com>`__.
8+
9+
The website is built by using `pelican <https://blog.getpelican.com/>`__. The
10+
flow for contribution is:
11+
12+
1. Clone the repository
13+
2. Run a local devserver
14+
3. Edit the content
15+
4. File a pull request (PR) against ``develop`` branch
16+
5. Resolve discussions in the PR review
17+
6. PR is merged, done
18+
19+
.. note::
20+
21+
Do NOT file PR against the ``master`` branch.
22+
23+
In the working copy root, run the following command for the local devserver:
24+
25+
.. code-block:: bash
26+
27+
env SITEURL=http://localhost:8000 make devserver
28+
29+
Branch convention
30+
=================
31+
32+
The `master` branch is automatically deployed to the official website.
33+
34+
The `develop` branch is automatically deployed to the under development website.
35+
36+
Other branches will not be deployed.
37+
38+
Changes for improvement
39+
-----------------------
40+
41+
To add contents or website features, create a branch named like
42+
`feature/your-addition`.
43+
44+
New blog entries
45+
----------------
46+
47+
To add a new blog entry, the branch name should be
48+
`feature/blog/entry-name`.
49+
50+
New event entries
51+
----------------
52+
53+
To add a new evnet entry, the branch name should be
54+
`feature/event/entry-name`.
55+
56+
Bugfix
57+
------
58+
59+
If you want to fix bugs or typographical errors, create a branch named like
60+
`bugfix/your-fix`.

Diff for: content/pages/about.rst

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
=====
2+
About
3+
=====
4+
5+
:url:
6+
:save_as: about.html
7+
8+
Contact us
9+
==========
10+
11+
* Twitter: https://twitter.com/sciwork
12+
* Telegram group (online chatroom): https://t.me/sciwork2020
13+
14+
15+
Sciwork team
16+
============
17+
18+
* Yung-Yu Chen, Ph.D. (`@yungyuc <https://twitter.com/yungyuc>`__, `LinkedIn <https://www.linkedin.com/in/yungyuc>`__)
19+
* Chester Cheng (`Telegram <https://t.me/chester_cheng>`__, `LinkedIn <https://www.linkedin.com/in/chestercheng626>`__)
20+
* Kunxiang Huang, Ph.D. (`Email <[email protected]>`__)
21+
* Ping-Lien Chao (`@poseidon3141592 <https://twitter.com/poseidon3141592>`__)
22+
* Yu-Fang Hu (`Email <mailto:[email protected]>`__)
23+
* Chi-Ching Lin (`Email <mailto:[email protected]>`__)
24+
* Tsung-Hsien Peter Li (`Email <mailto:[email protected]>`__)
25+
* Jenny Yen (`Email <mailto: [email protected]>`__)
26+
* Shu-Fen Yu (`Email <mailto: [email protected]>`__)

Diff for: content/pages/index.rst

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
====
2+
Home
3+
====
4+
5+
:url:
6+
:save_as: index.html
7+
8+
Computational sciences are critically important as information technology has
9+
blended in every aspect of human activities. Proficiently speaking programming
10+
languages is a prerequisite for conducting most research and engineering work,
11+
and as practitioners observe, the simple task evolves into a hierarchy of
12+
skills that take years to acquire. To properly use computers for science or
13+
engineering, the problem is two-fold. We need a thorough understanding of the
14+
problem to solve, and simultaneously we need to master computer programming to
15+
deliver reliable solution. It is overly challenging since either of both is
16+
already complicated.
17+
18+
Sciwork would like to get involved in the global effort to solve the issue of
19+
code development entangling with science and engineering. There will be
20+
sprints, hands-on tutorials, and technical talks in the conference. Attendees
21+
are expected to be in different levels of code development. We will work
22+
together for good and open computational sciences.
23+
24+
Areas of topics
25+
===============
26+
27+
* Array processing
28+
* Mathematical and numerical libraries
29+
* Geometry and visualization
30+
* Physics, chemistry, and their applications
31+
* Other science and engineering
32+
* C++, Python, and other programming languages
33+
* Compiler, development environment, and software engineering
34+
* High-performance computing, parallel computing, distributed computing, and
35+
concurrent computing
36+
* Cloud, networking, and storage

Diff for: pelicanconf.py

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*- #
3+
from __future__ import unicode_literals
4+
5+
AUTHOR = 'Sciwork Team'
6+
SITENAME = 'Sciwork'
7+
SITEURL = ''
8+
9+
PATH = 'content'
10+
THEME = 'theme'
11+
12+
TIMEZONE = 'Asia/Taipei'
13+
14+
DEFAULT_LANG = 'en'
15+
16+
MENUITEMS = (
17+
('Home', '/'),
18+
('About', 'about.html'),
19+
)
20+
21+
# Feed generation is usually not desired when developing
22+
FEED_ALL_ATOM = None
23+
CATEGORY_FEED_ATOM = None
24+
TRANSLATION_FEED_ATOM = None
25+
AUTHOR_FEED_ATOM = None
26+
AUTHOR_FEED_RSS = None
27+
28+
# Blogroll
29+
# LINKS = (('Pelican', 'http://getpelican.com/'),
30+
# ('Python.org', 'http://python.org/'),
31+
# ('Jinja2', 'http://jinja.pocoo.org/'),
32+
# ('You can modify those links in your config file', '#'),)
33+
34+
# Social widget
35+
# SOCIAL = (('You can add links in your config file', '#'),
36+
# ('Another social link', '#'),)
37+
38+
DEFAULT_PAGINATION = 10
39+
40+
# Uncomment following line if you want document-relative URLs when developing
41+
#RELATIVE_URLS = True

Diff for: tailwind/purgecss.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
content: ['./**/*.html'],
3+
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
4+
}

0 commit comments

Comments
 (0)