#!/usr/bin/env python3 # # prjpeppercorn -- GateMate FPGAs Bitstream Documentation and Tools # # Copyright (C) 2024 The Project Peppercorn Authors. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # import os, time from os import path from string import Template import html_tilegrid import shutil import chip GM_DOCS_INDEX = """
Project Peppercorn is a project to document the GateMate bitstream and internal architecture.
This repository contains HTML documentation automatically generated from the Project Peppercorn database. Data generated includes tilemap data and bitstream data for many tile types. Click on any tile to see its bitstream documentation.
Licensed under a very permissive CC0 1.0 Universal license.
""" def main(): shutil.rmtree("work_html", ignore_errors=True) os.mkdir("work_html") commit_hash = "" #database.get_db_commit() build_dt = time.strftime('%Y-%m-%d %H:%M:%S') docs_toc = "" family = "CCGM1" print("Family: " + family) docs_toc += f"