Skip to content

balzac-lang/balzac-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

654 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Balzac Documentation

Python application

Overview

This repository contains the official documentation for the Balzac programming language. Balzac is a domain-specific language designed for writing Bitcoin smart contracts. The documentation is built using Sphinx and provides comprehensive information about the language's syntax, features, and usage.

Quick Start

Prerequisites

  • Python 3.x
  • pip (Python package manager)

Installation

  1. Clone this repository:
git clone https://github.com/balzac-lang/balzac-doc.git
cd balzac-doc
  1. Install dependencies:
pip install sphinx pygments
  1. Install the Balzac lexer and build the documentation:
make full-build
  1. Start a local server to view the documentation:
make server

The documentation will be available at http://localhost:8000

Building the Documentation

Available Commands

Run make to see all available commands. Here are the most commonly used ones:

make build                # Build the documentation
make clean                # Clean the documentation
make html                 # Build HTML documentation
make latexpdf             # Build PDF documentation
make linkcheck            # Check all external links

For a complete list of available commands, run make without arguments.

Docker Support

Building the Docker Image

Build the Docker image (assuming the documentation is in build/html):

docker build -t balzaclang/balzac-doc:latest .

Running the Documentation Server

Run the container on port 8080:

docker run --rm --name balzac-doc -p 8080:80 balzaclang/balzac-doc:latest

Access the documentation at http://localhost:8080

Using Prebuilt Images

Pull the latest image from DockerHub:

docker pull balzaclang/balzac-doc:latest

Available architectures:

  • linux/amd64
  • linux/arm/v7
  • linux/arm64

Contributing

We welcome contributions to the documentation! Please feel free to submit issues or pull requests to help improve the documentation.

Resources