### Install content-structure Library Source: https://github.com/microwebstacks/content-structure/blob/main/README.md Install the content-structure library using npm. Ensure prerequisites like choco and node-gyp are installed. ```shell npm install content-structure ``` -------------------------------- ### Run Demo and Parse Example Source: https://github.com/microwebstacks/content-structure/blob/main/README.md Execute the demo script or run the parse.js file to process content. This will display the structure of the SQLite database tables and the count of rows in each. ```cmd >pnpm run demo > node parse.js content_dir : C:\dev\MicroWebStacks\content-structure\example\content searching for files with extensions : *.md Structure DB tables and row counts: - asset_info: 19 - assets: 19 - blob_store: 14 - documents: 30 - items: 82 ``` -------------------------------- ### Log Variable in JavaScript Source: https://github.com/microwebstacks/content-structure/blob/main/example/content/paragraphs/readme.md This snippet initializes a constant and logs its value to the console. It's a basic example of JavaScript execution. ```javascript const count = 0 console.log(count) ``` -------------------------------- ### Publish a Git Tag Source: https://github.com/microwebstacks/content-structure/blob/main/README.md Use this command to create a new tag and push it to the remote repository. ```bash git tag v2.2.4 && git push origin v2.2.4 ``` -------------------------------- ### Gallery Image List Metadata Source: https://github.com/microwebstacks/content-structure/blob/main/example/content/gallery/readme.md Use this YAML block to specify the filenames of images for the gallery. ```yaml gallery - github-dark.png ``` -------------------------------- ### Gallery Image Directory Metadata Source: https://github.com/microwebstacks/content-structure/blob/main/example/content/gallery/readme.md Use this YAML block to specify the directory where gallery images are located. ```yaml gallery dir: images ``` -------------------------------- ### Collect Content Data Source: https://github.com/microwebstacks/content-structure/blob/main/README.md Use the collect function to gather all markdown content and associated assets. Specify the root directory, content directory, allowed file link extensions, and the output directory for the structure database. ```javascript import {collect} from 'content-structure' await collect({ rootdir:rootdir, contentdir:join(rootdir,"content"), file_link_ext:["svg","webp","png","jpeg","jpg","xlsx","glb"], outdir:join(rootdir,".structure") }) ``` -------------------------------- ### Basic PlantUML Diagram Source: https://github.com/microwebstacks/content-structure/blob/main/example/content/code-plantuml/readme.md Embed a simple PlantUML diagram using a standard markdown code block. ```plantuml @startuml Michael -> Maria : Message(Hello) @enduml ``` -------------------------------- ### Large PlantUML Sequence Diagram Source: https://github.com/microwebstacks/content-structure/blob/main/example/content/code-plantuml/readme.md Create complex sequence diagrams with multiple participants using PlantUML. ```plantuml @startuml Michael -> Maria : Message(Hello) Maria -> Marco : Message(Hi) Marco -> Miranda : Message(Hi there) Miranda -> Mario : Message(Hallo) Mario -> Mathilda: Message(Hallo) @enduml ``` -------------------------------- ### JavaScript Module Declaration Source: https://github.com/microwebstacks/content-structure/blob/main/example/content/test-many/readme.md A simple JavaScript code snippet declaring a module constant. ```javascript const mod = "value" ``` -------------------------------- ### Delete a Git Tag Source: https://github.com/microwebstacks/content-structure/blob/main/README.md These commands are used to delete a tag from both the remote and local repositories. ```bash git push origin :refs/tags/v2.2.4 git tag -d v2.2.4 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.