GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LizardByte/shared-web: Shared web assets for LizardByte projects.

BranchesTags
Open more actions menu

Latest commit

 

History

264 Commits
264 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs/static
docs/static
 
 
examples
examples
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
third-party
third-party
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.npmignore
.npmignore
 
 
.readthedocs.yaml
.readthedocs.yaml
 
 
.sonarcloud.properties
.sonarcloud.properties
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
dockle.toml
dockle.toml
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
readthedocs_post_build.sh
readthedocs_post_build.sh
 
 
readthedocs_pre_build.sh
readthedocs_pre_build.sh
 
 
renovate.json
renovate.json
 
 
sonar-project.properties
sonar-project.properties
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

LizardByte icon

shared-web

Shared web assets for LizardByte projects.

GitHub stars NPM Monthly Downloads NPM Version CI Codecov SonarCloud

Overview

Common web assets for use in LizardByte projects.

CDN

Published package assets are available through jsDelivr. For example, a language icon can be embedded directly:

<img
  src="https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@latest/dist/language-icons/JavaScript.svg"
  alt="JavaScript"
  width="32"
  height="32"
/>

Replace latest with a published package version for an immutable URL. URL-encode icon filenames that contain spaces or other reserved characters.

Installation

Install via NPM registry

  1. Add the dependency to your package.json file:
    npm install @lizardbyte/shared-web --ignore-scripts

Install via GitHub Package Registry

  1. Add a .npmrc file to the root of your project with the following contents.

    //npm.pkg.github.com/:_authToken=TOKEN
    @lizardbyte:registry=https://npm.pkg.github.com
    

    Replace TOKEN with a valid GitHub token with read access to the package registry.

    See Authenticating with a personal access token for more information or alternative methods of authentication.

  2. Add the dependency to your package.json file:

    npm install @lizardbyte/shared-web --ignore-scripts

CrowdIn in JSDoc

Create an initializer such as docs/crowdin-init.js:

globalThis.initCrowdIn('LizardByte-docs', 'dockle');

Then configure Dockle to load the CrowdIn assets from either jsDelivr or the installed npm package.

jsDelivr

[targets.jsdoc]
extra_files = ["docs/crowdin-init.js"]
extra_stylesheets = ["https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@latest/dist/crowdin-dockle-css.css"]
extra_javascript = [
  "https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@latest/dist/crowdin.js",
  "crowdin-init.js",
]

Replace latest with a published package version for immutable URLs.

npm

Install the package, then configure Dockle to copy and load its assets:

npm install --save-dev @lizardbyte/shared-web --ignore-scripts
[targets.jsdoc]
extra_files = [
  "node_modules/@lizardbyte/shared-web/dist/crowdin.js",
  "node_modules/@lizardbyte/shared-web/dist/crowdin-dockle-css.css",
  "docs/crowdin-init.js",
]
extra_stylesheets = ["crowdin-dockle-css.css"]
extra_javascript = ["crowdin.js", "crowdin-init.js"]

About

Shared web assets for LizardByte projects.

www.npmjs.com/package/@lizardbyte/shared-web

Resources

Readme
AGPL-3.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Generated from LizardByte/template-base
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.