-
Notifications
You must be signed in to change notification settings - Fork 34
docs/For Developers documentation #802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
andy-jdl
wants to merge
1
commit into
thegetty:main
Choose a base branch
from
andy-jdl:for-developers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,15 +7,18 @@ aliases: | |
| - /documentation/for-developers/ | ||
| --- | ||
|
|
||
| TK | ||
| Since its launch in December 2022, Quire has been freely available under the BSD 3-Clause License. Quire is a tool for generating full static sites using 11ty, with pages that load quickly in the browser. The Quire CLI provides a straightforward set of commands for building and publishing your site. | ||
|
|
||
| ## Requirements | ||
| [Node.js](https://nodejs.org/en/) v18 or higher (LTS preferred) | ||
|
|
||
| ## Repositories | ||
|
|
||
| ### quire | ||
|
|
||
| https://github.com/thegetty/quire | ||
|
|
||
| Quire’s primary repository, with the command-line interface and 11ty template packages | ||
| Quire’s primary repository, with the command-line interface and 11ty template packages. | ||
|
|
||
| ### quire-docs | ||
|
|
||
|
|
@@ -25,12 +28,75 @@ This repository is specifically for the Quire website and documentation. | |
|
|
||
| ## Configuration | ||
|
|
||
| TK | ||
| Quire uses 11ty to generate static site files for publication. Through 11ty's Configuration API, general settings are available for developers in `config.yaml` to configure their Quire project. Learn more about 11ty's Configuration API through their official [documentation](https://www.11ty.dev/docs/config/). | ||
|
andy-jdl marked this conversation as resolved.
|
||
|
|
||
| Read our [*Metadata & Configuration*](https://quire.getty.edu/docs-v1/metadata-configuration/) for adjusting your `config.yaml`. | ||
|
|
||
| | Property | Expected Value | Description | | ||
| | --- | --- | --- | | ||
| | `accordion` | object | Controls accordion UI behavior. | | ||
| | `analytics` | object | Analytics settings. | | ||
| | `bibliography` | object | Bibliography display settings. | | ||
| | `bylineFormat` | `initials` \| `name` \| `name-title` \| `string` \| `false` | Controls how contributor bylines are displayed. | | ||
| | `citations` | object | Citation display settings. | | ||
| | `copyButton` | object | Configures the section link copy button. | | ||
| | `entryPage` | object | Settings for object/catalogue entry pages. | | ||
| | `epub` | object | EPUB output settings. | | ||
| | `figures` | object | Figure and image display settings. | | ||
| | `footnotes` | object | Footnote display settings. | | ||
| | `globalControls` | object | Labels for expand/collapse all controls. | | ||
| | `licenseIcons` | boolean | Whether to display license icons. | | ||
| | `localization` | object | Localization settings. | | ||
| | `menuType` | `full` \| `brief` | Set the appearance of the contents list in the sidebar menu. Setting to `brief` will hide any pages with sub-sections. | | ||
| | `navigation` | object | Previous/next navigation button labels. | | ||
| | `pageTitle` | object | Page title formatting. | | ||
| | `pdf` | object | PDF output settings. | | ||
| | `ref` | object | Cross-reference settings. | | ||
| | `searchEnabled` | boolean | Enables or disables site search. | | ||
| | `tableOfContents` | object | Table of contents display settings. | | ||
|
|
||
| ## Migrating from Hugo to 11ty | ||
|
|
||
| Hugo supports various config file types including YAML, TOML and JSON while 11ty supports YAML with a separate `.eleventy.js` file for Configuration API. | ||
|
|
||
| {% q-class "box warning" %} | ||
| - Editing `.eleventy.js` can introduce breaking changes. Ensure you read the official 11ty documentation before making any changes. | ||
|
andy-jdl marked this conversation as resolved.
|
||
| {% endq-class %} | ||
|
|
||
| ### Properties removed from `config.yaml` under Hugo | ||
| - `blackfriday` | ||
| - `markup` | ||
| - `theme` | ||
| - `metaDataFormat` | ||
| - `pluralizeListTitles` | ||
| - `disableKinds` | ||
| - `buildDrafts` | ||
|
|
||
| ### Directory Structure under 11ty | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a great start, it should be toward the top of the document and at a heading level 2. Could you elaborate more on directories used, working from the directories configured in .eleventy.js (eg, public, _site, _includes, etc)? |
||
| Layouts: `./_layouts` | ||
| Site Data: `./content/_data` | ||
| Assets: `./content/_assets` | ||
|
|
||
| ### Shortcodes | ||
| 11ty uses JavaScript to register shortcodes and Liquid for templating. | ||
|
|
||
| Basic shortcode syntax: `{% shortcode-name %}` | ||
|
|
||
| Shortcode registration can be found under `./_plugins/shortcodes` | ||
|
|
||
|
|
||
| ## Publication API | ||
|
|
||
| TK | ||
|
|
||
| ## Page API | ||
|
|
||
| TK | ||
|
|
||
| ## Shortcodes API | ||
|
|
||
| TK | ||
|
|
||
| ## Notes | ||
|
|
||
| TK | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be v22 -- see the
enginesproperty of the CLI and 11ty package file, for now without mentioning LTS. Node's LTS version is 24 currently but I don't know if quire has been sufficiently tested against v24 to document it that way.