eg-antora.git
4 years agoupgrade postcss plugins
Dan Allen [Mon, 6 Apr 2020 21:56:09 +0000 (15:56 -0600)]
upgrade postcss plugins

4 years agoupgrade gulp plugins
Dan Allen [Mon, 6 Apr 2020 21:54:24 +0000 (15:54 -0600)]
upgrade gulp plugins

4 years agoupgrade stylelint
Dan Allen [Mon, 6 Apr 2020 21:52:20 +0000 (15:52 -0600)]
upgrade stylelint

4 years agoupgrade handlebars
Dan Allen [Mon, 6 Apr 2020 21:49:27 +0000 (15:49 -0600)]
upgrade handlebars

4 years agoupgrade eslint
Dan Allen [Mon, 6 Apr 2020 21:47:48 +0000 (15:47 -0600)]
upgrade eslint

4 years agoupdate dependency lock file
Dan Allen [Mon, 6 Apr 2020 21:46:21 +0000 (15:46 -0600)]
update dependency lock file

4 years agouse #with instead of #if to retrieve Antora version
Dan Allen [Sat, 4 Apr 2020 09:17:30 +0000 (03:17 -0600)]
use #with instead of #if to retrieve Antora version

4 years agoput comparison value second in eq condition
Dan Allen [Sat, 4 Apr 2020 09:15:30 +0000 (03:15 -0600)]
put comparison value second in eq condition

4 years agouse .. instead of ../this in template
Dan Allen [Sat, 4 Apr 2020 09:15:15 +0000 (03:15 -0600)]
use .. instead of ../this in template

4 years agoonly remove background color from active link, not whole background
Dan Allen [Thu, 2 Apr 2020 23:31:00 +0000 (17:31 -0600)]
only remove background color from active link, not whole background

4 years agodon't allow the toc sidebar to grow beyond the bounds of the content column
Dan Allen [Wed, 1 Apr 2020 19:35:33 +0000 (13:35 -0600)]
don't allow the toc sidebar to grow beyond the bounds of the content column

4 years agomerge !56
Dan Allen [Tue, 31 Mar 2020 21:30:19 +0000 (21:30 +0000)]
merge !56

resolves #107 add JavaScript that generates the "on this page" sidebar

4 years agoadd styles for TOC and integrate TOC into page layout
Dan Allen [Tue, 31 Mar 2020 10:38:55 +0000 (04:38 -0600)]
add styles for TOC and integrate TOC into page layout

- use flexbox to layout TOC
- add scroll spy behavior to sidebar TOC
- introduce additional breakpoint for sidebar TOC width (desktop and widescreen)
- activate last entry in toc if scroll has reached bottom of page
- introduce variables for toc (top, width, etc)
- add utility class to hide element when in TOC
- look for -toc class on body; rename before-toc class to is-before-toc
- use article top as threshold for activating entry in TOC
- disable scrollbar on toc in Firefox
- scroll list instead of menu
- hide scrollbar on TOC
- don't add embedded toc if element is found with ID "toc"

4 years agoadd JavaScript that generates the "on this page" sidebar
Dan Allen [Mon, 19 Nov 2018 21:07:56 +0000 (14:07 -0700)]
add JavaScript that generates the "on this page" sidebar

This script was originally developed for Couchbase by OpenDevise. This
commit contributes the script to the Antora project on behalf of
Couchbase. The script will now be licensed under the terms of the MPL
2.0 license to match the license of the Antora project itself.

4 years agocorrection: disable link background on active
Dan Allen [Tue, 31 Mar 2020 10:41:45 +0000 (04:41 -0600)]
correction: disable link background on active

4 years agodisable background on link focus
Dan Allen [Tue, 31 Mar 2020 10:35:41 +0000 (04:35 -0600)]
disable background on link focus

4 years agomerge !105
Dan Allen [Tue, 31 Mar 2020 09:15:16 +0000 (09:15 +0000)]
merge !105

resolves #121 preallocate space for scrollbar on nav menu

4 years agopreallocate space for scrollbar on nav menu
Dan Allen [Tue, 31 Mar 2020 07:21:36 +0000 (01:21 -0600)]
preallocate space for scrollbar on nav menu

- set overflow: scroll
- configure scrollbar on Firefox to only show when there's scrollable content
- move scrollbar thumb color to a variable

4 years agouse em instead of rem to align conum in colist
Dan Allen [Tue, 31 Mar 2020 01:13:37 +0000 (19:13 -0600)]
use em instead of rem to align conum in colist

4 years agofix alignment of conums and description text in conum list
Dan Allen [Tue, 31 Mar 2020 00:31:25 +0000 (18:31 -0600)]
fix alignment of conums and description text in conum list

4 years agoadd article class to main element
Dan Allen [Mon, 30 Mar 2020 20:07:55 +0000 (14:07 -0600)]
add article class to main element

4 years agomerge !104
Dan Allen [Mon, 30 Mar 2020 09:22:00 +0000 (09:22 +0000)]
merge !104

resolves #118 select nav item on hash change (and initial page load)

4 years agoselect nav item on hash change (and initial page load)
Dan Allen [Mon, 30 Mar 2020 00:05:58 +0000 (18:05 -0600)]
select nav item on hash change (and initial page load)

- select nav item that points to anchor when hash in window.location changes (or present at initial page load)
- if nav item is not found, but points to a parent of the fragment, select that nav item

4 years agomerge !92
Dan Allen [Fri, 27 Mar 2020 18:21:25 +0000 (12:21 -0600)]
merge !92

document source maps in README

4 years agorework description of source maps and move to section about bundle
Dan Allen [Fri, 27 Mar 2020 18:20:41 +0000 (12:20 -0600)]
rework description of source maps and move to section about bundle

4 years agoformat source
Dan Allen [Thu, 26 Mar 2020 20:58:43 +0000 (14:58 -0600)]
format source

4 years agoresolves #117 fix order of statements in relativize helper to avoid dropping fragment
Dan Allen [Thu, 26 Mar 2020 09:14:03 +0000 (03:14 -0600)]
resolves #117 fix order of statements in relativize helper to avoid dropping fragment

4 years agomerge !102
Dan Allen [Thu, 19 Mar 2020 19:26:11 +0000 (19:26 +0000)]
merge !102

resolves #116 honor environment variable to force edit page link to be shown

4 years agohonor environment variable (FORCE_SHOW_EDIT_PAGE_LINK) to force edit page link to...
Dan Allen [Wed, 18 Mar 2020 21:59:43 +0000 (15:59 -0600)]
honor environment variable (FORCE_SHOW_EDIT_PAGE_LINK) to force edit page link to be shown

4 years agomerge !103
Dan Allen [Wed, 18 Mar 2020 22:50:18 +0000 (22:50 +0000)]
merge !103

resolves #115 register built-in helpers (resolvePage and resolvePageURL) with stub implementation in preview site

4 years agoregister built-in helpers (resolvePage and resolvePageURL) with stub implementation...
Dan Allen [Wed, 18 Mar 2020 22:02:54 +0000 (16:02 -0600)]
register built-in helpers (resolvePage and resolvePageURL) with stub implementation in preview site

4 years agoimprove implementation for #99 and add example to preview site
Dan Allen [Wed, 18 Mar 2020 22:30:43 +0000 (16:30 -0600)]
improve implementation for #99 and add example to preview site

4 years agomerge !101
Dan Allen [Wed, 18 Mar 2020 22:29:24 +0000 (22:29 +0000)]
merge !101

resolves #99 decode anchor hash string to support Unicode characters

4 years agofix: decode anchor hash string to support Chinese characters
Konrumi [Sun, 8 Mar 2020 05:07:34 +0000 (05:07 +0000)]
fix: decode anchor hash string to support Chinese characters

(cherry picked from commit 810652e445545efbf20a6a3e93ce4365ed534516)

4 years agomodify implementation of relativize helper
Dan Allen [Wed, 18 Mar 2020 21:41:45 +0000 (15:41 -0600)]
modify implementation of relativize helper

- consolidate logic
- return to if not root-relative
- return to prefixed with site path if from is undefined
- export unnamed function

4 years agoadd blank line after regexp constant in helper
Dan Allen [Wed, 18 Mar 2020 21:07:32 +0000 (15:07 -0600)]
add blank line after regexp constant in helper

5 years agodocument the page.displayVersion UI model property
Dan Allen [Tue, 10 Dec 2019 23:03:08 +0000 (16:03 -0700)]
document the page.displayVersion UI model property

5 years agoadd warning that using a backslash in front of a mustache expression disables it
Dan Allen [Wed, 13 Nov 2019 09:35:05 +0000 (02:35 -0700)]
add warning that using a backslash in front of a mustache expression disables it

5 years agomake the reference table of UI variables clearer
Dan Allen [Wed, 13 Nov 2019 09:27:01 +0000 (02:27 -0700)]
make the reference table of UI variables clearer

5 years agoupgrade eslint and update configuration for comma-dangle
Dan Allen [Sat, 2 Nov 2019 02:45:34 +0000 (20:45 -0600)]
upgrade eslint and update configuration for comma-dangle

5 years agoupdate dependencies
Dan Allen [Thu, 31 Oct 2019 08:36:55 +0000 (02:36 -0600)]
update dependencies

5 years agoresolves #103 style part heading and partintro block
Dan Allen [Wed, 30 Oct 2019 23:03:31 +0000 (17:03 -0600)]
resolves #103 style part heading and partintro block

5 years agodon't use fileUri for edit link if CI env var is set
Dan Allen [Tue, 29 Oct 2019 07:11:06 +0000 (01:11 -0600)]
don't use fileUri for edit link if CI env var is set

5 years agomerge !97
Dan Allen [Tue, 29 Oct 2019 02:26:57 +0000 (02:26 +0000)]
merge !97

resolves #102 use fileUri for edit page link if available

5 years agouse fileUri for edit page link if available
Dan Allen [Tue, 29 Oct 2019 02:04:00 +0000 (20:04 -0600)]
use fileUri for edit page link if available

5 years agoupdate handlebars to address vuln
Dan Allen [Sun, 13 Oct 2019 20:48:02 +0000 (14:48 -0600)]
update handlebars to address vuln

5 years agoAdd information about page.editUrl as this functionnality is limited for the moment...
Antoine Le Morvan [Wed, 11 Sep 2019 12:58:48 +0000 (12:58 +0000)]
Add information about page.editUrl as this functionnality is limited for the moment to 4 hosts.

5 years agorename table role spread to stretch to be compliant with Asciidoctor output
Dan Allen [Fri, 4 Oct 2019 21:04:31 +0000 (15:04 -0600)]
rename table role spread to stretch to be compliant with Asciidoctor output

5 years agodocument the env and antoraVersion template variables
Dan Allen [Tue, 1 Oct 2019 23:36:32 +0000 (17:36 -0600)]
document the env and antoraVersion template variables

5 years agodocument the siteRootPath template variable
Dan Allen [Tue, 1 Oct 2019 23:34:24 +0000 (17:34 -0600)]
document the siteRootPath template variable

5 years agomerge !94
Dan Allen [Tue, 1 Oct 2019 22:52:44 +0000 (22:52 +0000)]
merge !94

resolves #100 add support for line-through role

5 years agoadd support for line-through role
Dan Allen [Tue, 1 Oct 2019 22:40:32 +0000 (16:40 -0600)]
add support for line-through role

5 years agoadd .doc namespace to CSS selectors for doc where missing
Dan Allen [Tue, 1 Oct 2019 22:35:00 +0000 (16:35 -0600)]
add .doc namespace to CSS selectors for doc where missing

5 years agoremove redundant role from main element
Dan Allen [Tue, 1 Oct 2019 22:34:03 +0000 (16:34 -0600)]
remove redundant role from main element

5 years agominor rewording in docs
Dan Allen [Tue, 1 Oct 2019 22:33:10 +0000 (16:33 -0600)]
minor rewording in docs

5 years agocorrectly document how to disable the editUrl (and hence Edit this Page link)
Dan Allen [Wed, 11 Sep 2019 12:07:21 +0000 (06:07 -0600)]
correctly document how to disable the editUrl (and hence Edit this Page link)

5 years agomention in README that Node.js provides npm
Dan Allen [Tue, 10 Sep 2019 23:16:37 +0000 (17:16 -0600)]
mention in README that Node.js provides npm

5 years agorefresh dependencies
Dan Allen [Tue, 10 Sep 2019 23:05:43 +0000 (17:05 -0600)]
refresh dependencies

5 years agoclarify how page attributes are defined and used
Dan Allen [Tue, 10 Sep 2019 07:01:30 +0000 (01:01 -0600)]
clarify how page attributes are defined and used

- mention that they can be defined in the playbook
- show an example that contains a hyphen in the name
- correct the terminology

5 years agoresolves #98 ignore image optimizer if not available
Dan Allen [Tue, 3 Sep 2019 22:26:25 +0000 (16:26 -0600)]
resolves #98 ignore image optimizer if not available

5 years agoupdate dependencies
Dan Allen [Tue, 3 Sep 2019 22:14:09 +0000 (16:14 -0600)]
update dependencies

5 years agoupdate dependency lock file
Dan Allen [Tue, 3 Sep 2019 22:13:12 +0000 (16:13 -0600)]
update dependency lock file

5 years agouse fallback function when image optimizer isn't available
Dan Allen [Tue, 3 Sep 2019 22:11:39 +0000 (16:11 -0600)]
use fallback function when image optimizer isn't available

5 years agocopy any gif images under src/img
Dan Allen [Tue, 3 Sep 2019 22:11:16 +0000 (16:11 -0600)]
copy any gif images under src/img

5 years agoUpdate README.adoc
Daniel Mulholland [Wed, 28 Aug 2019 20:18:39 +0000 (20:18 +0000)]
Update README.adoc

5 years agoupdate dependencies; fix newly detected lint error
Dan Allen [Wed, 28 Aug 2019 08:35:13 +0000 (02:35 -0600)]
update dependencies; fix newly detected lint error

5 years agomerge !91
Dan Allen [Wed, 28 Aug 2019 07:48:33 +0000 (07:48 +0000)]
merge !91

resolves #95 prepend site path when resolving relative URL if from is undefined or empty

related to https://gitlab.com/antora/antora/issues/258

5 years agoprepend site path when resolving relative URL if from is undefined or empty
Dan Allen [Sat, 24 Aug 2019 23:20:44 +0000 (17:20 -0600)]
prepend site path when resolving relative URL if from is undefined or empty

5 years agominor rewording in docs for site.url and site.path template vars
Dan Allen [Wed, 28 Aug 2019 06:32:59 +0000 (00:32 -0600)]
minor rewording in docs for site.url and site.path template vars

5 years agouse single-quoted strings in Handlebars expressions
Dan Allen [Wed, 28 Aug 2019 06:00:16 +0000 (00:00 -0600)]
use single-quoted strings in Handlebars expressions

5 years agocolor unresolved link
Dan Allen [Sun, 25 Aug 2019 20:53:09 +0000 (14:53 -0600)]
color unresolved link

5 years agoclarify docs for site.path property in UI model
Dan Allen [Sun, 25 Aug 2019 19:10:38 +0000 (13:10 -0600)]
clarify docs for site.path property in UI model

5 years agodocument the site.path property in the UI model
Dan Allen [Sun, 25 Aug 2019 10:33:34 +0000 (04:33 -0600)]
document the site.path property in the UI model

5 years agomerge !90
Dan Allen [Sat, 24 Aug 2019 23:13:13 +0000 (23:13 +0000)]
merge !90

resolves #94 make current page URL argument to relativize helper optional

5 years agomake current page URL argument to relativize helper optional
Dan Allen [Sat, 24 Aug 2019 09:54:58 +0000 (03:54 -0600)]
make current page URL argument to relativize helper optional

5 years agoexplain page attributes more clearly in docs
Dan Allen [Sat, 24 Aug 2019 22:42:32 +0000 (16:42 -0600)]
explain page attributes more clearly in docs

5 years agomerge !89
Dan Allen [Sat, 24 Aug 2019 22:39:19 +0000 (22:39 +0000)]
merge !89

Add example to clarify page.attributes usage.

5 years agoUpdate templates.adoc to clarify page.attributes usage. This might be obvious to...
David Jencks [Sat, 24 Aug 2019 22:39:19 +0000 (22:39 +0000)]
Update templates.adoc to clarify page.attributes usage.  This might be obvious to everyone else, but it took me about a day to figure out the syntax.

5 years agoadd helper to return current year as a string
Dan Allen [Sat, 24 Aug 2019 08:03:33 +0000 (02:03 -0600)]
add helper to return current year as a string

5 years agoadd hint about how to disable the page.editUrl property
Dan Allen [Thu, 22 Aug 2019 19:11:48 +0000 (13:11 -0600)]
add hint about how to disable the page.editUrl property

5 years agodisable hyphens for bare URLs
Dan Allen [Wed, 21 Aug 2019 07:30:41 +0000 (01:30 -0600)]
disable hyphens for bare URLs

5 years agoclarify info about canonical URL [skip ci]
Dan Allen [Wed, 21 Aug 2019 07:00:36 +0000 (01:00 -0600)]
clarify info about canonical URL [skip ci]

5 years agoformat source
Dan Allen [Wed, 14 Aug 2019 00:15:07 +0000 (18:15 -0600)]
format source

5 years agoactivate syntax highlighting immediately instead of deferring until load
Dan Allen [Wed, 14 Aug 2019 00:13:51 +0000 (18:13 -0600)]
activate syntax highlighting immediately instead of deferring until load

5 years agoadd syntax highlighting for Go
Dan Allen [Wed, 14 Aug 2019 00:13:38 +0000 (18:13 -0600)]
add syntax highlighting for Go

5 years agoenable strict mode for highlight.js script
Dan Allen [Wed, 14 Aug 2019 00:13:09 +0000 (18:13 -0600)]
enable strict mode for highlight.js script

5 years agoonly thicken bottom border of th inside thead
Dan Allen [Thu, 1 Aug 2019 23:00:56 +0000 (17:00 -0600)]
only thicken bottom border of th inside thead

5 years agoremove redundant property assignment in toolbar CSS
Dan Allen [Tue, 23 Jul 2019 05:49:00 +0000 (23:49 -0600)]
remove redundant property assignment in toolbar CSS

5 years agofix typo in README [skip ci]
Dan Allen [Mon, 22 Jul 2019 17:23:01 +0000 (11:23 -0600)]
fix typo in README [skip ci]

5 years agomerge !87
Dan Allen [Mon, 22 Jul 2019 09:53:31 +0000 (09:53 +0000)]
merge !87

- recalibrate font sizes
- use rem calc function to compute font sizes from desired (desktop) pixel value
- introduce variables to control font sizes, font weights, and line heights

5 years agouse CSS var for doc margin
Dan Allen [Mon, 22 Jul 2019 09:25:33 +0000 (03:25 -0600)]
use CSS var for doc margin

5 years agouse desktop media qualifier instead of mobile media qualifier for CSS vars
Dan Allen [Mon, 22 Jul 2019 09:23:58 +0000 (03:23 -0600)]
use desktop media qualifier instead of mobile media qualifier for CSS vars

5 years agoupdate variable convention
Dan Allen [Mon, 22 Jul 2019 09:17:33 +0000 (03:17 -0600)]
update variable convention

* use underscore for state modifier (e.g., _hover)
* use double hyphen for media modifier (e.g. --mobile)

5 years agouse variables for line heights
Dan Allen [Fri, 19 Jul 2019 20:44:05 +0000 (14:44 -0600)]
use variables for line heights

5 years agoextract font families and bold font weight into variables
Dan Allen [Fri, 19 Jul 2019 19:13:23 +0000 (13:13 -0600)]
extract font families and bold font weight into variables

5 years agorecalibrate font sizes
Dan Allen [Wed, 17 Jul 2019 09:52:55 +0000 (03:52 -0600)]
recalibrate font sizes

- reduce scaling on body
- don't scale font size of paragraphs in document
- extract body font sizes as variables
- use rem calc to reverse compute rem value from desired pixel value
- adjust font sizes in nav
- slightly reduce width of nav
- fix position of component versions in explore menu

5 years agomerge !88
Dan Allen [Fri, 19 Jul 2019 22:31:21 +0000 (22:31 +0000)]
merge !88

resolves #86 drop nav state functionality

5 years agoput global click listener on document element instead of window to ignore secondary...
Dan Allen [Fri, 19 Jul 2019 19:45:34 +0000 (13:45 -0600)]
put global click listener on document element instead of window to ignore secondary clicks

5 years agodrop nav state functionality
Dan Allen [Fri, 19 Jul 2019 08:31:37 +0000 (02:31 -0600)]
drop nav state functionality

- don't attempt to remember expanded state or scroll offset
- scroll current page in nav to midpoint
- scroll current page in nav to midpoint when nav is initially hidden
- rename 01-navigation.js to 01-nav.js for consistency

5 years agofix stylelint error
Dan Allen [Fri, 19 Jul 2019 22:24:20 +0000 (16:24 -0600)]
fix stylelint error