WICG/webmonetization
关于
拟议的 Web Monetization 标准
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Web Monetization
This is the source code for the website hosted at webmonetization.org.
The website is the home of the proposed Web Monetization standard currently incubating at the WICG.
You can read the docs, or read the proposed specification.
Contribute
The Web Monetization website is built with Starlight, a documentation framework based on Astro.
Specification Development
Please refer to the CONTRIBUTING.md.
Get Set Up
Requirements
- Node.js 22.23.4 or later on Node 22, 24.16.0 or later on Node 24, or 26.3.0 or later. The repo sets Node 24 in
.nvmrc, and CI uses the same file. - npm 11.10.0 or later. Node 24.16.0 and later already include it.
On older versions, npm install and npm run stop with an EBADDEVENGINES error.
Install dependencies
cd webmonetization
npm install
Other commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm run start |
Starts local dev server at localhost:1100 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
npm run lint |
Check code formatting and quality with Prettier and ESLint |
npm run format |
Format code and fix linting issues automatically |
Content
Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.
⭐ We recommend using the .mdx extension whenever possible.
Editing content
Static image assets
Static image assets should be placed in the public/img/docs directory. When referencing these assets in the Markdown, don't include public/ in the file path. For example:

⭐ Make your image accessible by including helpful alt text that describes the image.
⭐ Ensure your file name is descriptive. A file name of img01.png isn't helpful.
⭐ Use hyphens instead of underscores in file names to keep our naming conventions consistent.
Edit existing doc
Navigate to /src/content/docs and locate the page you want to edit. For example:
/src/content/docs/RELEVANT_FOLDER/doc-to-be-edited.mdx
---
title: This Doc Needs To Be Edited
---
Edit me...
Refer to the Starlight documentation on authoring content for more detailed guidance.
Add a new doc
Create your Markdown file in in /src/content/docs/RELEVANT_FOLDER. For example, within /src/content/docs/RELEVANT_FOLDER/newly-created-doc.mdx.
⭐ We recommend using the .mdx extension whenever possible.
If you need help with authoring content, we suggest you refer to the Starlight documentation for more detailed guidance.
Be sure to add your new doc to the sidebar! The sidebar is configured in astro.config.mjs. Refer to the Starlight documentation on sidebar configuration for more information.
Add a custom page
Astro is a content-focused web framework that integrates with a lot of existing framework libraries, making it relatively flexible for building customised sites.
Custom pages exist in the /src/pages directory, and out-of-the-box come with absolutely nothing. For the Web Monetization website, we have created custom layout components that form the frame of a basic HTML web page, and allow you to add content that would populate the main element of the page via a concept known as slots. A <slot /> allows you to specify where individual page content should be injected.
---
import i18next, { t, changeLanguage } from "i18next";
import Base from '../layouts/Base.astro';
---
<Base>
/* Page content goes here */
</Base>
Refer to the Astro documentation on pages for additional details.
Reviews and Approvals
After a PR is submitted, it will be reviewed by a member of the Web Incubator Community Group (WICG). Ensure you're able to receive GitHub notifications so you'll know when the PR is approved and can be merged or if updates are required before approval is given.
Web Monetization Community Call
Our catch-up calls are open to our community. We have them every fourth Thursday at 14:00 GMT, via Google Meet.
To join the video meeting, click this link: https://meet.google.com/fjy-vjef-ogj Otherwise, to join by phone, dial +49 30 300195060 and enter this PIN: 982 511 322 1488# To view more phone numbers, click this link: https://tel.meet/fjy-vjef-ogj?hs=5
Video call link: https://meet.google.com/fjy-vjef-ogj
More phone numbers: https://tel.meet/fjy-vjef-ogj?hs=5
探索相关项目
加载中…