Giter Site home page Giter Site logo

push-website's Introduction

Overview

This repo houses Push protocol's website, documentation and blogs. More info below on how to run the website or submit PRs for new documentation, blog or website pages.

Index

Installation

$ yarn install

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Serve Build

$ npm run build && npm run serve

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

$ USE_SSH=true yarn deploy

Not using SSH:

$ GIT_USER=<Your GitHub username> yarn deploy

How to submit new documentation

  • All assets (Images, etc) should be put under /static/assets/docs/{relativeproduct}/{relativefolder}/{relativearticle}

    for example: if you are creating tutorial for creating channel under notifications, then images for them should be under /static/assets/docs/notifications/tutorials/create-channel

    Feel free to create a folder for a relative document incase needed.

  • We follow numbering format and specific format for folder structure, article structure and positioning, do make sure that you are aware of those, refer existing articles for more understanding.

  • You don't have to put a preview image for any documentation as any .mdx file under the /docs will automatically generate a preview image.

  • Avoid adding custom components unless really required.

  • Use live playground to ensure builders can play with the code.

  • Use modern standards for images (aivf, webp) wherever possible.

  • Ensure consistency is maintained with other articles that are written.

  • Ensure you know how front matter of Docusaurus works. Recommended to read about front matter from Docusaurus for best practices.

  • Once you are done with the article, raise a PR and a team member will review -> merge -> deploy the website with your newly added docs.

How to submit new blog

  • All blogs go in /blog section. Each blog is a seperate folder that follows the naming convention of yyyy-mm-dd-blog-short-title-in-kebab-case

  • Cover images and any other images goes inside this folder.

  • All images need to follow modern standards (webp or aivf).

  • Create an index.md inside this folder struture and write you blog here.

  • Ensure you are aware of all the meta tags that you have to provide. Make sure you are aware of all standards mentioned here and include them in the blog.

  • All authors should be included in /blog/authors.yml and author images should be placed in /assets/blog/authors/.

  • Once you are done with the article, raise a PR and a team member will review -> merge -> deploy the website with your newly added blogs.

How to submit new webpage

  • All webpage go in /src/pages section.

  • All custom components go in src/components section.

  • You can build .mdx markdown page as well. Follow this Docusaurus tutorial on How to build a page for more info.

  • Ensure images are of modern format (aivf, webp) and are stored under /static/assets/website/{relevant_folder} or for custom components under /static/assets/src/{relevant_folder}

  • Once you are done with the article, raise a PR and a team member will review -> merge -> deploy the website with your newly added blogs.

Useful commands

Convert all pngs to webp (Mac Terminal)

  • Browse to that folder and run for file in *; do cwebp -q 80 "$file" -o "${file%.*}.webp"; done

Useful references

https://theochu.com/docusaurus/styling/

Credits

This website is built using Docusaurus 2. a modern static website generator.

push-website's People

Contributors

0xnilesh avatar abhishek-01k avatar akp111 avatar aman035 avatar ameeetgaikwad avatar anuragasawa20 avatar arn4b avatar arpitha-rajeev avatar arunava-barua avatar ayushm2003 avatar corlard3y avatar deekshithepns avatar deekshithmd avatar dependabot[bot] avatar gautam25raj avatar harshrajat avatar jafcr avatar joelesdar avatar kartikmehta8 avatar klausmikhaelson avatar madhur-push avatar man-jain avatar mdteach avatar mishramonalisha76 avatar pritipsingh avatar rijusougata13 avatar siddesh7 avatar subhranshudas avatar sumithprabhu avatar zaryab2000 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

Watchers

 avatar  avatar  avatar

push-website's Issues

Bloated API response

Hi, I was going through the api calls made at app.epns.io in the channel tab. For fetching each channel subscriber count and to check whether the current wallet address is a subscriber or not, the call to https://backend-prod.epns.io/apis/channels/get_subscribers returns the list of all wallet address subscribed to the channel which seems unnecessary as just two properties can solve it

{
  subscriberCount: <number>,
  isSubscribed: true/false
}

I'm not actually aware of the backend infrastructure in place, but pretty sure it's not a good scalable solution.

[BUG] support contact form is down

Hey guys! I wanted to reach out and make some product suggestions, and get in touch with the epns/push team - however it looks like your sendmail cert expired? You might want to take a look at that 👀

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.