Code Monkey home page Code Monkey logo

docs-1's Introduction

The central Lingua-Pupuli docs site

Build Status

Cloning

This project uses git submodules

git clone --recurse-submodules https://github.com/lingua-pupuli/docs.git

To update the Docsy theme use

git submodule update --init --recursive --depth 50

Requirements

For Windows users, chocolatey hosts a Hugo Extended package

  • NodeJS with PostCSS installed. This is available via npm install. See Docsy Getting Started for more information.

Lingua-Pupuli Umbrella Project

This hugo site needs the editor-services and editor-syntax site built first, into the lingua-pupuli/static/<...> directory

> hugo --source editor-services --destination '../lingua-pupuli/static/editor-services'

> hugo --source editor-syntax --destination '../lingua-pupuli/static/editor-syntax'

> hugo server --bind "0.0.0.0" --source lingua-pupuli

VSCode

hugo server --bind "0.0.0.0" --source vscode

Using VSCode Dev Containers

Due to fsnotify not being able to watch Windows mounts inside docker containers, Hugo may not see file changes and will not trigger a rebuild automatically. This is a known problem with Docker/VScode/WSL2/WSL1. To workaround this issue either; do not use Windows to host Linux containers (which is ๐Ÿ˜ข) or use the Clone in Volume feature.

Updating the websites from source code

Parts of the websites are automatically generated from source code (e.g. the VS Code package.json file). A PowerShell script has been created to automatically parse the source code, and update the relevant websites.

Steps:

  1. Clone the source repositories and checkout their required branch/tag/reference. Note the directories where they were cloned to as it is required for step 2.

  2. Run the update-from-source.ps1 PowerShell script.

> .\update-from-source.ps1 -ExtensionSourcePath '<Path to Puppet VS Code Extension>'
  1. Commit the changes and create a Pull Request to merge them into the docs repository.

Guidelines

Creating animated GIFS

  • Size should be 1200px wide and 750px high (Or percentage thereof)

    Use the tools\SetVSCodeWindow.ps1 script to help automatically set the size

  • VS Code should be zoomed to +140%

    VS Code setting: "window.zoomLevel": 2

  • Have blue border (Not required, but nice for consistency). This basically means use VS Code stable, not Insiders

  • Use the latest VS Code edition

  • Close explorer bar if it's not needed. If it is needed keep the number of files shown to a minimum to avoid distraction OR use a real life example (e.g. puppetlabs-stdlib)

  • Reduce palette clutter where possible

    Disable extensions like Docker, Live Share etc. that add toolbar and status bar icons

  • Probably best to use default font (not ligatures)

  • Speed up frames to avoid users staring at a blank gif

  • 10fps is probably a good frame rate to record at

    • Set it to looping

    • A good starting point is decrease the timing of all frames by 40ms

    • Set the last frame to 1000ms

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.