Skip to content
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

[Draft] Asciidoctor server - much faster build times #631

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .direnv/bin/asciidoctor
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# https://stackoverflow.com/questions/59895/how-do-i-get-the-directory-where-a-bash-script-is-located-from-within-the-script
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo "socket: ${SCRIPT_DIR}"
exec asciidoctor-client --address "unix://${SCRIPT_DIR}/../../.asciidoctor-server.sock" "${@:1:$#-1}" yeet
12 changes: 12 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

layout go
layout ruby

if [ -z "$CI" ]; then
# local development
use flake
export HUGO_CACHEDIR="${XDG_CACHE_HOME:-$TMPDIR}/hugo_cache"
fi

PATH_add ".direnv/bin"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# hugo destination build
public/
.hugo_build.lock

# Microsoft Visual Studio exclusions
*.sln
Expand All @@ -19,3 +20,4 @@ node_modules/
/nbproject/

/tmp/
.direnv
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"asciidoc.antora.enableAntoraSupport": false
}
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
source "https://rubygems.org"

gem 'asciidoctor', '~> 2.0', '>= 2.0.17'
gem 'asciidoctor-server', '~> 0.4.0'
23 changes: 22 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,30 @@ GEM
remote: https://rubygems.org/
specs:
asciidoctor (2.0.17)
asciidoctor-server (0.4.0)
asciidoctor (~> 2.0)
grpc (~> 1.0)
logging (~> 1.0)
optparse (~> 0.3.1)
google-protobuf (3.25.1)
googleapis-common-protos-types (1.11.0)
google-protobuf (~> 3.18)
grpc (1.60.0)
google-protobuf (~> 3.25)
googleapis-common-protos-types (~> 1.0)
little-plugger (1.1.4)
logging (1.8.2)
little-plugger (>= 1.1.3)
multi_json (>= 1.8.4)
multi_json (1.15.0)
optparse (0.3.1)

PLATFORMS
ruby

DEPENDENCIES
asciidoctor (~> 2.0, >= 2.0.17)
asciidoctor (~> 2.0, >= 2.0.17)
asciidoctor-server (~> 0.4.0)

BUNDLED WITH
2.3.26
2 changes: 1 addition & 1 deletion content/8.x/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pre: "<b>5. </b>"
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}


2 changes: 1 addition & 1 deletion content/8.x/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ pre: "<b>5. </b>"
:email: [email protected]

=== Оглавление
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}


2 changes: 1 addition & 1 deletion content/8.x/admin/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ weight: 30
---

=== Table of Contents
{{% children depth="2" showhidden="false" %}}
{{% children depth="2" showhidden="false" /%}}


2 changes: 1 addition & 1 deletion content/8.x/admin/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Weight: 20
:email: [email protected]

=== Оглавление
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/admin/configuration/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 20
---

=== Table of Contents
{{% children depth="4" showhidden="false" %}}
{{% children depth="4" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/admin/releases/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Releases"
weight: 10000
---

{{% children depth="1" %}}
{{% children depth="1" /%}}



Expand Down
2 changes: 1 addition & 1 deletion content/8.x/developer/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 30
---

=== Table of Contents
{{% children depth="2" showhidden="false" %}}
{{% children depth="2" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/developer/architecture/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 40
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/developer/extensions/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 20
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/developer/extensions/backend/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 30
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 30
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/developer/extensions/frontend/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 30
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 50
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 50
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 50
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 50
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/8.x/developer/installation-guide/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ The following documentation is for SuiteCRM Version 8+; to see documentation for
Please consider going through the link:../developer-getting-started[Developer Getting started] guide. It may simplify part of the process described on the guides listed next.

== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}

2 changes: 1 addition & 1 deletion content/8.x/features/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 10
---

=== Table of Contents
{{% children depth="2" showhidden="false" %}}
{{% children depth="2" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/admin/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pre: "<b>3. </b>"
---

=== Table of Contents
{{% children depth="2" showhidden="false" showhidden="true" %}}
{{% children depth="2" showhidden="false" showhidden="true" /%}}


2 changes: 1 addition & 1 deletion content/admin/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ pre: "<b>2. </b>"
:email: [email protected]

=== Оглавление
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/admin/administration-panel/Emails/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 10
---

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
2 changes: 1 addition & 1 deletion content/admin/administration-panel/SSO/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 60
---

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
2 changes: 1 addition & 1 deletion content/admin/administration-panel/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 10
---

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
2 changes: 1 addition & 1 deletion content/admin/administration-panel/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Weight: 11
:email: [email protected]

=== Оглавление
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/admin/administration-panel/search/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 50
---

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This enhancement is only available in SuiteCRM from version 7.11 onwards.
{{% /notice %}}

== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Weight: 10
{{% /notice %}}

== Содержание
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
2 changes: 1 addition & 1 deletion content/admin/releases/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Releases"
weight: 10000
---

{{% children depth="1" %}}
{{% children depth="1" /%}}



Expand Down
2 changes: 1 addition & 1 deletion content/admin/suitecrm-analytics/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ free-to-download solution which was built using Pentaho BI Suite Community Editi
SuiteCRM users the ability to launch, administrate and customise their own BI platform and is
completely extendable. SuiteCRM Analytics is comprised of two major components:

{{% children depth="4" showhidden="true" %}}
{{% children depth="4" showhidden="true" /%}}



2 changes: 1 addition & 1 deletion content/admin/suitecrm-analytics/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SuiteCRM Analytics - это полностью открытое и беспла

Для работы с платформой бизнес-аналитики необходимо настроить следующие компоненты:

{{% children depth="4" showhidden="true" %}}
{{% children depth="4" showhidden="true" /%}}



2 changes: 1 addition & 1 deletion content/community/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pre: "<b>4. </b>"
---

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}



Expand Down
2 changes: 1 addition & 1 deletion content/community/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pre: "<b>3. </b>"
:email: [email protected]

=== Содержание
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}



Expand Down
2 changes: 1 addition & 1 deletion content/community/contributing-code/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a graduate seeking a new project to dabble in, or a veteran developer
– all are welcome to maintain our title of the world’s best open source CRM!

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}



2 changes: 1 addition & 1 deletion content/community/contributing-code/_index.es.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a graduate seeking a new project to dabble in, or a veteran developer
– all are welcome to maintain our title of the world’s best open source CRM!

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}



2 changes: 1 addition & 1 deletion content/community/contributing-to-docs/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ chapter: true

== Contributing to the Documentation

{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}



Expand Down
2 changes: 1 addition & 1 deletion content/community/contributing-to-docs/_index.ru.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ chapter: true

== Вклад в создание документации

{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}



Expand Down
2 changes: 1 addition & 1 deletion content/developer/Theme/SuitePIcons/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ weight: 20
---

=== Table of Contents
{{% children depth="2" showhidden="false" %}}
{{% children depth="2" showhidden="false" /%}}

2 changes: 1 addition & 1 deletion content/developer/Theme/SuitePIconsFont/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ weight: 20
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}

2 changes: 1 addition & 1 deletion content/developer/Theme/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 15
---

=== Table of Contents
{{% children depth="2" showhidden="false" %}}
{{% children depth="2" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/developer/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pre: "<b>2. </b>"
---

=== Table of Contents
{{% children depth="4" showhidden="false" %}}
{{% children depth="4" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/developer/_index.es.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pre: "<b>2. </b>"

=== Contenidos

{{% children depth="4" showhidden="false" %}}
{{% children depth="4" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/developer/api/Developer-setup-guide/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight:
---

=== Table of Contents
{{% children depth="4" showhidden="false" %}}
{{% children depth="4" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/developer/api/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 16
---

=== Table of Contents
{{% children depth="3" showhidden="true" %}}
{{% children depth="3" showhidden="true" /%}}
2 changes: 1 addition & 1 deletion content/developer/searchframework/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ weight: 18
---

=== Table of Contents
{{% children depth="4" showhidden="false" %}}
{{% children depth="4" showhidden="false" /%}}
2 changes: 1 addition & 1 deletion content/user/_index.en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pre: "<b>1. </b>"
---

=== Table of Contents
{{% children depth="3" showhidden="false" %}}
{{% children depth="3" showhidden="false" /%}}
Loading