Git Product home page Git Product logo

publiccode.asia's Introduction

Public Money Public Code – publiccode.asia

Build Status

This is the website of "Public Money, Public Code" publiccode.asia. It is based on Hugo.

Table of Contents

Contribute

Prerequisites

In order to modify the website, you need hugo and git installed on your computer. If Hugo isn't available in your package manager, obtain it from its official website. We tested the website build with Hugo from version 0.20.7 upwards. Please make sure that you use an as recent version as possible to avoid errors.

Issue and Branch Policy

Before making a pull request, please file an issue. So, other developers have the chance to give feedback or discuss details. Match every pull request with an issue please and add the issue number in description e.g. like "Fixes #123".

We have the following branches

  • gh-pages
    Github Pages
  • master
    This contains shipped code. After significant features/bugfixes are accumulated on development, we make a version update, and make a release.

Also read CONTRIBUTING.md

Getting involved

First of all, you'll need an account on github.com and become a FOSSASIA member here.

You can now clone the repo, open issues and make pull requests to solve issues.

Translate

Read through TRANSLATE.md to contribute to the localization of the site.

Build

To see a preview of the website you need to have Hugo installed and be able to execute Bash scripts in your command line.

  1. Navigate to the website's root directory (e.g. ~/PMPC/website/) and open a terminal window there. Type in git pull. This will get the latest changes from the server
  2. In the terminal, execute cd site/ to navigate in the right directory for hugo's website build.
  3. Only if you added a new languages which doesn't exist on the website yet: Add you 2-letter language code in line 4 of the build.sh file.
  4. In your terminal, execute ./build/build.sh server. This command will build the website and enable you to browse the result on your computer only. Open localhost:1313 in your web browser to see it.

HowTos and FAQs

Important file paths

The website structure is very easy. The most important files and directories are:

  • site/config-static.toml: Static texts and URLs which are the same for any language
  • site/languages/strings.{en,fr...}.toml: Headlines, site title, many texts for the various languages.
  • site/content: Markdown-files for sub-pages like /openinitiative, can be translated
  • site/data/{en,de...}/share: Services and their very short translatable strings where people can share to. Is being used in the "Spread" section and the left-side sharing icons
  • site/static/: CSS, images, and Javascript files for the design.
  • site/static/css/custom.css: File where all custom CSS code should be written to.
  • site/layouts/: HTML structure (scaffold) for the website. Useful if you want to add another section or modify anchor links or CSS classes.
  • site/layouts/page: Template for a sub-page like /privacy
  • site/layouts/shortcodes: HTML/Hugo code which can be important from within a Markdown file
  • site/public/: Built files which are used to display the website. Generated by running hugo.

Add a new supporting organisation

Adding a new supporting organisation requires two steps:

  1. Add a new entry in site/data/organisations/organisations.json in valid JSON format, the file should be self-explaining: name is the full name of the organisation, img is the name of the logo file (case-sensitive!), and url the web address of the organisation. To make sure that the file has a valid JSON syntax you can use jsonlint.com or another tool before committing your changes.
  2. Add the organisation's logo to the site/static/img/organisations directory. Please only upload PNG files with maximum 150px width or 100px height – ideally using transparency instead of white as background so we can also use it on other backgrounds some day. Consider using pngcrush or a similar tool to reduce the file's size and remove metadata.

Travis Build

We are using Travis to automatically build the website. The site is automatically deployed when there's a push to the master branch of the repository.

Licence

This site is based on the website publiccode.asia of the Free Software Foundation Europe e.V. Software applications are all free software and used under the respective licenses. The site itself is Copyright 2017 by the FSFE, FOSSASIA and its contributors and licensed under the GPLv3 license.

publiccode.asia's People

Contributors

0x48piraj avatar abishekvashok avatar agx avatar carmenbianca avatar comzeradd avatar decentral1se avatar floriansnow avatar har9862 avatar hpdang avatar jonasob avatar jordimas avatar kanav-7 avatar kreijstal avatar kubami9 avatar mariobehling avatar mhorne89 avatar mikini avatar mxmehl avatar navirocker avatar nicorikken avatar nzec avatar pepebecker avatar remorax avatar sayak119 avatar schiessle avatar sebastianopistore avatar supunte avatar taringamberini avatar tiborepcek avatar tomnor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

publiccode.asia's Issues

More Animations to Site

The site uses animate.css but the animations are currently applied to very limited elements.

The animations should be added to almost the complete site, using simple flat animations like fadein.

Shall i work for the same ?

Lack of template for issue or PR

There is no template for creating an issue or a PR.
This needs to be created ASAP.
I would like to work on this, and I'll make a PR for the same by tomorrow :)

Organisation Section : Weird Behavior on Clicking.

On the Supporting Organisation Sections , on clicking the fa-expand icon , the div overlaps the next section content. Happens in both homepage and /openinitiative/ page.

2017-12-20
2017-12-20 1

I can work on it. What should happen ideally?

Hindi translation not working

On clicking Hindi translation, the site doesn't translate it. Instead it shows the page in English only.
Hindi translation needs to be added.
I would like to work on this :)

Update languages

Take out European languages. And add Asian languages:

Keep:

  • Esperanto
  • Español
  • Français
  • Türkçe
  • 正體中文(臺灣)

Add:

  • Tiếng Việt - vi
  • Bahasa Melayu - ms
  • Bahasa Indonesia - id

Dark Logo not loading in non-English languages

The image logo_dark.svg is not loading when you view the site in any language that's not English.

Steps to reproduce the bug:

  1. Click on any language other than English, for instance, Deutsch.
  2. Scroll up and down till you get the text "Logo of the campaign" in place of the logo image

Screenshots:
screen shot 2017-12-09 at 3 16 55 pm

I would like to work on this issue :)

Add Polish translation

Goal

Polish translation added to the website.

Right now

Currently there is no Polish language on the website.

So...?

I'm ready to start working on Polish translation as soon as my previous PR will be merged 😄

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.