Coder Social home page Coder Social logo

ytldsimage / docsify-bitbucket.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from docsify-bitbucket/docsify-bitbucket.github.io

0.0 1.0 0.0 290 KB

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

Home Page: https://docsify-bitbucket.github.io

License: MIT License

JavaScript 88.58% HTML 11.42%

docsify-bitbucket.github.io's Introduction

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.

docsify-bitbucket.github.io's People

Contributors

szkiba avatar

Watchers

 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.