GithubHelp home page GithubHelp logo

upjohnc / bitcoindevkit.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitcoindevkit/bitcoindevkit.org

0.0 0.0 0.0 49.72 MB

BDK project home page (originally magicalbitcoin.org ๐Ÿง™)

Home Page: https://bitcoindevkit.org/

JavaScript 99.06% HTML 0.94%

bitcoindevkit.org's Introduction

bitcoindevkit.org

Build Status

Build the Documentation Locally

In order to build the website locally, you'll need Node.js >= 14.16 (or basically the latest LTS version).

The setup is straightforward:

# Install dependencies
npm install

# Serve locally (by default on port 8080)
npm start

Text Highlights

There are three types of text highlights that can be used to display different colored boxes.

A green box displaying a friendly tip:

:::tip
foo
:::

A yellow box with a cautious warning:

:::warning
foo
:::

A red box with a clear danger, you can also add a title foo to any container:

:::danger foo
bar
:::

SEO improvements

We are using the Vuepress SEO plugin to add relevant meta tags to the site and individual pages.

To improve the meta attributes of a specific page, you can add them as YAML frontmatter like this: (see the WooCommerce page for an example)

---
description: How to integrate BDK
tags:
- Bitcoin
- BDK
---
# BDK integration

This document explains how to **integrate BDK into your stack**.

Embedding YouTube videos

To add a YouTube video with a preview, you can do so by linking to it like this:

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/mqdefault.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)

Note that the link item needs to be a preview image (either from YouTube or a custom one) to result in an embedded video.

Check for broken links

The GitHub Actions pipeline checks for broken links after deploying the production site. You can also run the link check locally using npm run linkcheck:local. The dev server needs to be running alongside for this to work.

Generating docs-rs

To create or re-create the contents of static/docs-rs/bdk/<release>, copy the contents of the bdk/target/doc directory after running the below commands from the bdk project directory:

cargo clean
cargo +nightly rustdoc --features=compiler,electrum,esplora,compact_filters,key-value-db -- --cfg docsrs

A nightly toolchain is required because some cool features, like intra_rustdoc_links and doc_cfg, are still unstable.

Adding a blog post

Add a markdown file to content/blog/<year/<name>.md. At the beginning of the file add the following header:

---
title: "<post title>"
description: "<post description>"
author: "<author>"
date: "<date in yyyy-mm-dd format>"
tags: ["<tag1>", "<tag2>"]
hidden: true
draft: false
---

After that header you can type your post using markdown.

The title will be shown on top of the page, together with the list of tags. The description won't be shown, it's only used in the HTML metadata, so if you want to show it, you will have to copy it as part of the content that comes after the header.

If you need to add static data like pictures you can make a folder called static/blog/<year>/<name> and store everything you need in there.

bitcoindevkit.org's People

Contributors

afilini avatar notmandatory avatar bitcoinzavior avatar thunderbiscuit avatar rcasatta avatar rajarshimaitra avatar danielabrozzoni avatar i5hi avatar jbesraa avatar llfourn avatar gabridome avatar dennisreimann avatar marnixcroes avatar w0xlt avatar bitcoinabee avatar wilfredallyn avatar waterst0ne avatar darosior avatar wszdexdrf avatar willcl-ark avatar rorp avatar omahs avatar mplsgrant avatar kannapoix avatar aniketambore avatar vladimirfomene avatar tcharding avatar muinmomin avatar reez avatar tiero 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.