From owner-dev-commits-doc-all@freebsd.org Thu Jun 3 19:44:37 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5BB2963FAD5 for ; Thu, 3 Jun 2021 19:44:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FwxDj1Sb8z4jHm; Thu, 3 Jun 2021 19:44:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0CF817866; Thu, 3 Jun 2021 19:44:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 153Jiaxm021233; Thu, 3 Jun 2021 19:44:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 153Jian8021232; Thu, 3 Jun 2021 19:44:36 GMT (envelope-from git) Date: Thu, 3 Jun 2021 19:44:36 GMT Message-Id: <202106031944.153Jian8021232@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: f2d5f930d8 - main - tools/*translate.sh: Add description field on the YAML Front Matter parser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f2d5f930d82a9f0ccb290dd020173302eceeea02 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2021 19:44:37 -0000 The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=f2d5f930d82a9f0ccb290dd020173302eceeea02 commit f2d5f930d82a9f0ccb290dd020173302eceeea02 Author: Danilo G. Baio AuthorDate: 2021-06-03 19:30:31 +0000 Commit: Danilo G. Baio CommitDate: 2021-06-03 19:30:31 +0000 tools/*translate.sh: Add description field on the YAML Front Matter parser This field was introduced on 0d9894b11e0e94cde952b0112782e68e27c893da to improve SEO. --- tools/translate.sh | 2 +- tools/update_translate_template.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/translate.sh b/tools/translate.sh index cb4005611d..af3335ec91 100755 --- a/tools/translate.sh +++ b/tools/translate.sh @@ -66,7 +66,7 @@ for pofile in $(find "$COMPONENT/content/$LANGUAGE/" -name "*.po" ); do po4a-translate \ --format asciidoc \ --option compat=asciidoctor \ - --option yfm_keys=title,part \ + --option yfm_keys=title,part,description \ --master "$adoc_orig" \ --master-charset "UTF-8" \ --po "$pofile" \ diff --git a/tools/update_translate_template.sh b/tools/update_translate_template.sh index 4bb5699d2e..5e577b7f71 100755 --- a/tools/update_translate_template.sh +++ b/tools/update_translate_template.sh @@ -69,7 +69,7 @@ for component in $COMPONENTS; do po4a-updatepo \ --format asciidoc \ --option compat=asciidoctor \ - --option yfm_keys=title,part \ + --option yfm_keys=title,part,description \ --master "$document" \ --master-charset "UTF-8" \ --copyright-holder "The FreeBSD Project" \ @@ -82,7 +82,7 @@ for component in $COMPONENTS; do po4a-gettextize \ --format asciidoc \ --option compat=asciidoctor \ - --option yfm_keys=title,part \ + --option yfm_keys=title,part,description \ --master "$document" \ --master-charset "UTF-8" \ --copyright-holder "The FreeBSD Project" \