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

docsify-bitbucket

v1.0.12

Published

A Docsify plugin that help using Docsify with Bitbucket Server and Bitbucket Cloud

Downloads

14

Readme

docsify-bitbucket

NPM License: MIT Issues

A Docsify plugin that help using Docsify with Pages for Bitbucket Server and Bitbucket Cloud.

Docsify version of this documentation can be found at https://docsify-bitbucket.github.io

Installation

Add following script tag to your index.html after docsify.

<script src="//cdn.jsdelivr.net/npm/docsify-bitbucket"></script>

Options

repo

If repo parameter is missing from Docsify configuration then the plugin detect Butbucket repository URL and use it as Docsify repo parameter. You can disable this feature:

window.$docsify = {
  bitbucket: {
    noRepo : true
  }
}

On Bitbucket Cloud the repository detection is limited to web pages served from bitbucket.io domain.

corner icon

If repo parameter is set (or detected) then the plugin replaces the default GitHub repository corner picture with Bitbucket logo. You can disable this feature:

window.$docsify = {
  bitbucket: {
    noCorner : true
  }
}

logo

If logo parameter is missing from Docsify configuration then the plugin detect the Bitbucket project and use project's logo as Docsify logo parameter. You can disable this feature:

window.$docsify = {
  bitbucket: {
    noLogo : true
  }
}

On Bitbucket Cloud the plugin use repository's avatar as default logo.

favicon

If shortcut icon HTML link element is missing from enclosing HTML document then the plugin detect the Bitbucket project and use project's logo as shortcut icon (favicon). You can disable this feature:

window.$docsify = {
  bitbucket: {
    noFavicon : true
  }
}

On Bitbucket Cloud the plugin use repository's avatar as default favicon.

repository links

The plugin resolves special repository URLs to real Bitbucket Server URLs. Using this feature makes easy to link documents in other repositories either in same Bitbucket project or in another one. The first path segment (the first /) may have path parameters defined in RFC 3986 - Uniform Resource Identifier / 3.3 Path. The following path segment parameters are handled by plugin:

parameter | value ----------|------------ p | Bitbucket project key, project's short name or ~username for personal repositories r | Bitbucket git repository name b | Branch name

Repository URI format:

/;p=project;r=repository;b=branch/path

The project and branch part is optional but the repository part is required. The default value of the project is the project of the enclosing markdown document. The default value of the branch is the main branch.

Example for referencing main branch of repository sample in same project as referring document:

/;r=sample

The path part may conain any path relative to referred branch:

/;r=sample/docs/tutorial/intro

You can disable this feature:

window.$docsify = {
  bitbucket: {
    noLink : true
  }
}

Repository URI resolution feture works only with Pages for Bitbucket Server.

title

If title HTML element is missing from enclosing HTML document then the plugin set it based on the first markdown heading line of the current document. You can disable this feature:

window.$docsify = {
  bitbucket: {
    noTitle : true
  }
}

Sample

Sample website can be found at https://docsify-bitbucket.bitbucket.io/sample

License

This project is licensed under the MIT License. See the LICENSE for details.