npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rspress-plugin-gh-pages

v0.3.0

Published

Rspress plugin that add support for automatic deployment to GitHub Pages

Downloads

76

Readme

rspress-plugin-gh-pages NPM Version

简体中文

Rspress plugin to add support for automatic deployment to GitHub Pages.

  • No need to push the code and wait for the pages to be updated: Every time you run rspress build, the plugin will automatically push the generated files to the specified gh-pages branch of the repository
  • No complex continuous integration configuration: This plugin pushes the build files to the specified gh-pages branch, so page updates take effect much faster.

Usage

npm i rspress-plugin-gh-pages
pnpm add rspress-plugin-gh-pages
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import ghPages from 'rspress-plugin-gh-pages';

export default defineConfig({
  root: path.join(__dirname, 'docs'),
  plugins: [
    ghpages({
      repo: 'https://github.com/linbudu599/rspress-plugins.git',
      branch: 'website',
    }),
  ],
});

Configure

directory

Target directory to push to the gh-pages branch, config.outDir will be used if this configuration is not specified.

  • Type: string

siteBase

  • Type: string

Deploying to repositories other than the <user>.github.io repository requires specifying the siteBase option, as an example, deploying to repository <user>/awesome-plugins will require setting siteBase to /awesome-plugins, as the page will be hosted at https://<user>.github.io/awesome-plugins.

By default, this plugin will try to parse the repo option to get a siteBase value(if repo is a github.io repository, the siteBase will be /, otherwise, the siteBase will be /<repo-name>), you can also specify the siteBase option to override the default value.

silent

Disable terminal log output from this plugin.

  • Type: boolean
  • Default: false

repo

  • Type: string
  • Required

The repository to deploy to, you can also specify another repository to deploy to.

More options can be found in documentation of gh-pages.