Coder Social home page Coder Social logo

iefiru / swportal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sciwork/swportal

0.0 0.0 0.0 3.12 MB

Portal website for sciwork: https://sciwork.dev/

Home Page: https://sciwork.dev/

JavaScript 22.41% Python 25.16% CSS 25.31% Makefile 2.71% HTML 24.41%

swportal's Introduction

Sciwork portal

This repository is for the website for the sciwork portal. Check-ins to the repository will be automatically deployed to the website by Netlify.

The website is built by using pelican. The flow for contribution is:

  1. Clone the repository
  2. Run a local devserver
  3. Edit the content
  4. File a pull request (PR) against develop branch
  5. Resolve discussions in the PR review
  6. PR is merged, done

Note

Do NOT file PR against the master branch.

In the working copy root, run the following command for the local devserver:

env SITEURL=http://localhost:8000 make devserver [PORT=8000]

Branch convention

The master branch is deployed to the official website https://sciwork.dev and https://swportal.netlify.app.

The develop branch is deployed to the under development https://develop--swportal.netlify.app.

Other branches are deployed to https://{branch}--swportal.netlify.app. Replace / in the branch name with -.

Pull requests are deployed to https://deploy-preview-{id}--swportal.netlify.app. {id} is the PR ID.

Changes for improvement

To add contents or website features, create a branch named like feature/your-addition.

New blog entries

To add a new blog entry, the branch name should be feature/blog/entry-name.

New event entries

To add a new evnet entry, the branch name should be feature/event/entry-name.

Bugfix

If you want to fix bugs or typographical errors, create a branch named like bugfix/your-fix.

Writing content

Pelican supports writing content in reStructuredText format (with a file ending in .rst) or Markdown syntax (with a file ending in .md, .markdown, .mkd, or .mdown).

Scisprint

To add a new Scisprint event, save the pages into content/pages/sprint/{date:%Y} directory, and the URL should be sprint/{date:%Y}/{slug}.

Generate Sitemap

In order to generate sitemap.xml smoothly, some modifications are necessary:

  1. Make sure that env variable SITEURL has existed.
  2. Make sure that each .rst has :url: and :save_as: parameters.
  3. each time you run pelican content or make html, sitemap.xml will be generated automatically.

swportal's People

Contributors

kuomc avatar yungyuc avatar yenpeichen07 avatar en-chou avatar chestercheng avatar iefiru avatar j8xixo12 avatar li-pro avatar rockleona avatar tychuang1211 avatar cstnaya avatar jamie212 avatar mindihx avatar josix avatar dependabot[bot] avatar terrychan999 avatar tomatoprinx avatar mattwang44 avatar wdbps93206 avatar mlouielu avatar tigercosmos avatar lynchu avatar linoil avatar y3jo6 avatar yuyanghh avatar ohmybuggg avatar sucitw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.