1
0
Fork 0
mirror of synced 2026-10-10 04:27:37 +00:00
Source and build scripts for Lucee's documentation. http://docs.lucee.org
  • ColdFusion 51%
  • JavaScript 24.3%
  • SCSS 16%
  • CSS 7.8%
  • HTML 0.3%
  • Other 0.6%
Find a file
2026-10-09 12:14:11 +00:00
.github Improve recipe keywords for better lucee.skill discoverability. 2026-06-08 10:38:33 +02:00
api LD-176 add redirect frontmatter and meta-refresh stub, retire cookbook chapter 2026-05-18 14:37:26 +02:00
builders improve 404 handling: fix trailing-slash suggestions, clean up GA event 2026-05-18 14:53:40 +02:00
builds Reinstating builds folder (breaks the build when not there! 2015-06-05 09:31:58 +01:00
docs Update recipes index, skill and README 2026-10-09 12:14:11 +00:00
examples/docker Update MCP Server extension references to release 1.0.1.5. 2026-10-03 03:09:37 +02:00
server improve contrast for comments in code examples for dark mode 2025-12-22 01:48:40 +01:00
test-output improve caching recipies 2026-04-15 13:14:32 +02:00
.cloudfront-distribution-id Adding CloudFront ID file. 2016-04-06 23:17:41 +01:00
.editorconfig Add descriptions on each rule as comments in the Markdownlint config file. (#983) 2020-12-14 14:08:14 +01:00
.gitignore Update .gitignore 2026-02-10 11:44:30 +11:00
.markdownlint.yml Add descriptions on each rule as comments in the Markdownlint config file. (#983) 2020-12-14 14:08:14 +01:00
.travis.yml format cfhttp attributes (#1110) 2021-04-14 20:07:39 +02:00
.yamllint Add a GitHub action to lint the YAML files (#935) 2020-12-14 16:23:56 +01:00
AGENTS.md Create AGENTS.md 2026-04-16 19:54:05 +02:00
Application.cfc build: switch to java regex for better performance 2026-04-16 18:22:04 +02:00
build-all.cfm fix code typos 2024-07-06 20:22:47 +02:00
build.bat set java version to jdk8u332 2022-05-30 17:50:21 +02:00
build.cfm throw if the configured version assets are missin 2025-12-13 00:12:26 +01:00
build.sh Fix word case and style 2022-11-10 00:49:44 +10:00
file-extensions.md add docker compose for couchbase 2025-07-23 22:39:53 +02:00
import.bat windows version of import.sh 2018-04-07 11:42:58 +10:00
import.cfm use script runner to build lucee docs 2022-12-16 13:45:58 +01:00
import.sh Refactoring to change the way in which we deal with the reference data imported from source 2015-03-21 21:58:45 +00:00
LICENSE LD-29 adding a license file to the repo 2015-05-16 23:44:55 +01:00
luceelogoicon.png [ImgBot] Optimize images 2020-03-18 13:04:47 +10:00
README.md update assets build system from grunt 2025-10-27 08:46:04 +01:00
s3_website.yml liniting 2025-11-08 22:32:26 +01:00
serve.bat use build in markdown renderer 2024-06-26 20:51:12 +02:00
serve.sh add redis extension to docs 2022-08-02 10:46:43 +02:00

Lucee documentation source and builder

Lucee Docs Builder Lint

This repository contains the source and build scripts for creating Lucee's documentation. The website output of the docs can be found at https://docs.lucee.org.

Issues can be reported and tracked at https://luceeserver.atlassian.net/projects/LD.

Find out more about the project at: https://docs.lucee.org/docs.html.

Build locally

Prerequisites

The only optional dependency required is CommandBox.

CommandBox is only required to run the build process via the command line, or if you don't setup a virtual server with an existing local Lucee install.

Ensure that CommandBox is installed and that the box command is in your path.

Building the static documentation output

The purpose of the structure of the documentation is to allow a human readable and editable form of documentation that can be built into multiple output formats. At present, we have an "HTML" builder and a "Dash docs" builder, found at ./builders/html and ./builders/dash that will build the documentation website and dash docset respectively. The source of the documentation can be found in the ./docs folder.

To run the build, execute the build.sh or build.bat script found in the root of the project, i.e.

documentation>./build.sh|bat

Once this has finished, you should find ./builds/html and ./builds/dash directories with the website content / dash docsets built.

Running a server locally

Lucee Docs Requires Lucee 7 and for urlrewrite to be installed

You have two options

  • Create a webserver virtual host with a normal Lucee install, with the virtual host's DocumentRoot set to /lucee-docs/server
  • Run a custom docs instance via CommandBox

We have provided a utility server whose purpose is to run locally to help while developing/writing the documentation. To start it up, execute the serve.sh or serve.bat script found in the root of the project, i.e.

documentation>./serve.sh|bat

This will spin up a server using CommandBox on port 4040 and open it in your browser. You should also see a tray icon that will allow you to stop the server. Changes to the source docs should trigger an internal rebuild of the documentation tree which may take a little longer than regular requests to the documentation.

When running locally there are the following URLs available (these URLs below are for a CommandBox instance, substitute them with the URL for your virtual host if appropriate)

Working with the bundled JS and CSS files

The build process for the JS and CSS bundles are found under /builders/html/assets.

Quick Start

cd builders/html/assets
npm install
npm run build

For development with auto-rebuild on file changes:

npm run watch

Publishing Changes

After you have made everything more beautiful via CSS, or added some funky new interactivity via JavaScript, to publish a new build of the bundles:

  1. Update the asset version in builders/html/assets/package.json (config.assetVersion)
  2. Update variables.assetBundleVersion in Application.cfc to match
  3. Update this.assetBundleVersion in server/Application.cfc to match
  4. Run npm run build in the assets directory
  5. Commit all files including the new versioned CSS/JS files

The docs are statically deployed via CloudFront and versioning of these files is required to break caching.

For detailed documentation on the asset build system, see builders/html/assets/README.md.

Contributing

There is a lot of work to do, and we appreciate contribution in all forms. The issues list can be found and expanded upon here: https://luceeserver.atlassian.net/projects/LD

Ask questions or post suggestions over on the Lucee mailing List under the documentation category.

More information on how the documentation is built and formatted can be found at https://docs.lucee.org/docs.html.

The workflow for contributions is:

Raise issues and suggestions

Issues and suggestions are always welcome (though pull requests are preferred!). Please use the issue tracker: https://luceeserver.atlassian.net/projects/LD.

License

The project is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.