Giter Site home page Giter Site logo

sulthanfachrul / webmonetization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wicg/webmonetization

0.0 0.0 0.0 35.47 MB

Proposed Web Monetization standard

Home Page: https://webmonetization.org

License: Apache License 2.0

JavaScript 57.91% Dockerfile 0.14% CSS 5.94% HTML 27.43% TypeScript 8.58%

webmonetization's Introduction

Web Monetization

This repo is the code behind webmonetization.org

It is the home of the proposed Web Monetization standard currently incubating at the WICG.

You can view the explainer, or read the proposed spec.

Contribute

This website was created with Docusaurus and contributions are welcome as pull requests.

Local Development

  1. Make sure all the dependencies for the website are installed:
# Install dependencies
$ cd website
$ yarn
  1. Run your dev server:
# Start the site
$ yarn start

Directory Structure

Your project file structure should look something like this

webmonetization.org
    ├── CODE_OF_CONDUCT.md
    ├── CONTRIBUTING.md
    ├── Dockerfile
    ├── LICENSE
    ├── LICENSE.md
    ├── README.md
    ├── docker-compose.yml
    ├── docs
    │   ├── api.md
    │   ├── assets
    │   │   ├── ec-generate.svg
    │   │   ├── ec-unlock.svg
    │   │   ├── flow.svg
    │   │   ├── gatehub-addwallet.gif
    │   │   ├── gatehub-exchangeorder.png
    │   │   ├── gatehub-findpointer.gif
    │   │   ├── gatehub.png
    │   │   ├── uphold
    │   │   ├── uphold.svg
    │   │   └── xrpmigration
    │   ├── counter.md
    │   ├── exclusive-content.md
    │   ├── explainer.md
    │   ├── gatehub.md
    │   ├── getting-started.md
    │   ├── glossary.md
    │   ├── ilp-wallets.md
    │   ├── probabilistic-rev-sharing.md
    │   ├── receipt-verifier.md
    │   ├── receiving.md
    │   ├── remove-ads.md
    │   ├── resources.md
    │   ├── sending.md
    │   ├── specification.md
    │   ├── start-stop.md
    │   ├── stronghold.md
    │   ├── uphold.md
    │   └── xrptipbot.md
    ├── docusaurus.config.js
    ├── i18n
    │   └── en.json
    ├── package.json
    ├── sidebars.json
    ├── src
    │   ├── page-support
    │       ├── exclusive-content
    │   │   |── prob-revshare
    │       └── shared
    │   └── pages
    │       ├── docs.js
    │   │   ├── exclusive-content.js
    │       ├── index.js
    │       ├── meta-tag.js
    │       └── prob-revshare.js
    ├── static
    │   ├── CNAME
    │   ├── css
    │   │   └── custom.css
    │   ├── img
    │   │   ├── 11ty_webmo_logo.png
    │   │   ├── angular_webmo_logo.svg
    │   │   ├── awesome_webmo_logo.svg
    │   │   ├── coil_logo.svg
    │   │   ├── copy_icon.svg
    │   │   ├── fav-webmonetization.png
    │   │   ├── favicon.ico
    │   │   ├── gatehub_logo.svg
    │   │   ├── gatsby_webmo_logo.svg
    │   │   ├── grey_wm_logo.svg
    │   │   ├── gridsome_webmo_logo.svg
    │   │   ├── hugo_webmo_logo.svg
    │   │   ├── infinity_search_logo.svg
    │   │   ├── puma-logo.svg
    │   │   ├── runnaroo_logo.svg
    │   │   ├── stronghold_logo.svg
    │   │   ├── svelte_webmo_logo.svg
    │   │   ├── tessy_webmo_logo.svg
    │   │   ├── tipbot_logo.svg
    │   │   ├── uphold-logo.svg
    │   │   ├── uphold_logo.svg
    │   │   ├── vuepress_webmo_logo.png
    │   │   ├── webmon_icon.svg
    │   │   ├── webmon_icon_simple.svg
    │   │   ├── wm-icon-animated.svg
    │   │   └── wm-icon.svg
    │   ├── js
    │   │   ├── custom.js
    │   │   └── exclusive-content.js
    │   ├── service-worker.js
    │   └── specification.html
    ├── w3c.json
    ├── workers
    │   ├── README.md
    │   ├── exclusive-content
    │   │   ├── dist
    │   │   ├── node_modules
    │   │   ├── package.json
    │   │   ├── README.md
    │   │   ├── rollup.config.js
    │   │   ├── src
    │   │   ├── wrangler.toml
    │   │   └── yarn.lock
    │   |── probabilistic-revshare
    │   |   ├── README.md
    │   |   ├── package.json
    │   |   ├── rollup.config.js
    │   |   ├── src
    │   |   ├── tsconfig.json
    │   |   ├── wrangler.toml
    │   |   └── yarn.lock
    │   └── receipt-verifier
    │       ├── package.json
    │       ├── README.md
    │       ├── rollup.config.js
    │       ├── src
    │       ├── tsconfig.json
    │       ├── wrangler.toml
    │       └── yarn.lock
    └── yarn.lock

Editing Content

Editing an existing docs page

Edit docs by navigating to docs/ and editing the corresponding document:

docs/doc-to-be-edited.md

---
id: page-needs-edit
title: This Doc Needs To Be Edited
---

Edit me...

For more information about docs, click here

Adding Content

Adding a new docs page to an existing sidebar

  1. Create the doc as a new markdown file in /docs, example docs/newly-created-doc.md:
---
id: newly-created-doc
title: This Doc Needs To Be Edited
---

My new content here..
  1. Refer to that doc's ID in an existing sidebar in website/sidebar.json:
// Add newly-created-doc to the Getting Started category of docs
{
  "docs": {
    "Getting Started": [
      "quick-start",
      "newly-created-doc" // new doc here
    ],
    ...
  },
  ...
}

For more information about adding new docs, click here

Adding items to your site's top navigation bar

  1. Add links to docs, custom pages or external links by editing the themeConfig.navbar.links field of docusaurus.config.js:

docusaurus.config.js

module.exports = {
  // ...
  themeConfig: {
    navbar: {
      links: [
        {
          // Client-side routing, used for navigating within the website.
          // The baseUrl will be automatically prepended to this value.
          to: 'docs/introduction',
          // A full-page navigation, used for navigating outside of the website.
          // You should only use either `to` or `href`.
          href: 'https://www.facebook.com',
          // Prepends the baseUrl to href values.
          prependBaseUrlToHref: true,
          // The string to be shown.
          label: 'Introduction',
          // Left or right side of the navbar.
          position: 'left', // or 'right'
          // To apply the active class styling on all
          // routes starting with this path.
          // This usually isn't necessary
          activeBasePath: 'docs',
          // Alternative to activeBasePath if required.
          activeBaseRegex: 'docs/(next|v8)',
          // Custom CSS class (for styling any item).
          className: '',
        },
        // ... other links
      ],
    },
    // ...
  },
}

For more information about the navigation bar, click here

Adding custom pages

  1. Docusaurus uses React components to build pages. The components are saved as .js files in src/pages:
  2. If you want your page to show up in your navigation header, you will need to update the themeConfig.navbar.links field of docusaurus.config.js (see above).

website/siteConfig.js

module.exports = {
  // ...
  themeConfig: {
    navbar: {
      links: [
        {
          to: 'my-new-custom-page',
          label: 'My New Custom Page',
          position: 'left', // or 'right'
        },
      ],
    },
  },
}

For more information about custom pages, click here.

Full Documentation

Full documentation can be found on the website.

webmonetization's People

Contributors

melissahenderson avatar adrianhopebailie avatar traviscrist avatar sublimator avatar justmoon avatar spearl avatar marcoscaceres avatar sabineschaller avatar dependabot[bot] avatar wilsonianb avatar sulthanfachrul avatar wietsewind avatar mrmuhammadali avatar sergix avatar consistentbenny avatar chris-f4 avatar andrewmogbolu2 avatar html5cat avatar yoavweiss avatar vladimirmikulic avatar notwoods avatar thomasbnt avatar sidvishnoi avatar devcer avatar rossmurr4y avatar wobsoriano avatar spekulatius avatar njlie avatar mathieudutour avatar privacydingus 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.