From nobody Mon Dec 27 21:16:02 2021 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 04FBE1918127 for ; Mon, 27 Dec 2021 21:16:03 +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 4JN9Sf5QQyz4jrj; Mon, 27 Dec 2021 21:16:02 +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 9A88F248F7; Mon, 27 Dec 2021 21:16:02 +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 1BRLG2qS098498; Mon, 27 Dec 2021 21:16:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BRLG2JK098497; Mon, 27 Dec 2021 21:16:02 GMT (envelope-from git) Date: Mon, 27 Dec 2021 21:16:02 GMT Message-Id: <202112272116.1BRLG2JK098497@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Sergio Carlavilla Delgado Subject: git: 8624558756 - main - Activate the edit button for articles and books List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: carlavilla X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8624558756ae364a3d74877fcea2548ac455ed5a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640639762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OrNXvpzqBWrJ5sZ/0hZP3TLt3H0OQZF4U2XjZXRlNp0=; b=VX0poaqpAc7bnCtl7Ap1aVsVLu8EMq8Wq8YLUy7toHV0+9EdxJ0Pzwvqnl6TcMcV9y8pPK 0FoxIH1GT3VMlTF72vNPIYpUnWGHtvESFItQ14TvSJrhiLK2pNHLvylzzX4Kd6Q3lyjniY vSDF4TzDpqBqXOivLoDVN3/KMadyp3emk+uUKQ4tkSYrQqD84IU+D4Ay7MgOdwcHVJP0EI el9LxWKvaHjBF7OMp7vk8OtZJ/tUBy7bfrW4kw+bAdlaUJK7SMEAE6FHL12j3BN24S969h zBbDLQqa+qzVG/0izrlbQyCCt9lPnLISa1ilPfs3pq5xK547dqLghq7Xd1JYIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640639762; a=rsa-sha256; cv=none; b=o3h9uqHfFVJITE52kIdkgSWL94zwq5nqSILKaK9n7rfKXUNiWF1Sc048cU8AA9NxoOXnKn 85SdWErCpDs2f9/KYDyEXc96rQLCgqldm8i+I/wx2Dmnew7M0C79V7/vaZXKzOGtY7LFIM Cgljfg2tk9BaxWgoxC0k7UnLp5ge8dw1QnWCPQCbfawpUdr3FmWZHGLwSmAqhXBms4yk8U D2IYabaLaaqdOLie3jk7nLTZB8SC0TG/1maIFminfFRD8hQQ2R4mhnT6yNYFr46Rw/lGhV n5+3qBIFt6CK8jydXT6JrvCOnXxPT8OMOgAdLyhTVu8JDcB/cUqbsECh5K/41w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=8624558756ae364a3d74877fcea2548ac455ed5a commit 8624558756ae364a3d74877fcea2548ac455ed5a Author: Sergio Carlavilla Delgado AuthorDate: 2021-12-27 21:15:30 +0000 Commit: Sergio Carlavilla Delgado CommitDate: 2021-12-27 21:15:50 +0000 Activate the edit button for articles and books --- documentation/config/_default/config.toml | 1 + .../beastie/assets/styles/documentation.scss | 105 ++++++++------------- .../themes/beastie/layouts/articles/list.html | 9 +- .../themes/beastie/layouts/articles/single.html | 9 +- .../themes/beastie/layouts/books/list.html | 9 +- .../themes/beastie/layouts/books/single.html | 9 +- 6 files changed, 61 insertions(+), 81 deletions(-) diff --git a/documentation/config/_default/config.toml b/documentation/config/_default/config.toml index 3ba167405b..17f8bb41dd 100644 --- a/documentation/config/_default/config.toml +++ b/documentation/config/_default/config.toml @@ -17,6 +17,7 @@ googleAnalytics = 'UA-22767463-1' websiteURL = "https://www.FreeBSD.org" description = "FreeBSD Documentation Portal" isOnline = true + editBaseUrl = "https://github.com/freebsd/freebsd-doc/edit/main/documentation/content/" [security] enableInlineShortcodes = false diff --git a/documentation/themes/beastie/assets/styles/documentation.scss b/documentation/themes/beastie/assets/styles/documentation.scss index a3860e7c8d..347fd470d6 100644 --- a/documentation/themes/beastie/assets/styles/documentation.scss +++ b/documentation/themes/beastie/assets/styles/documentation.scss @@ -29,7 +29,7 @@ .articles-books-list { list-style: none; padding-left: 10px; - + li { a { @@ -37,7 +37,7 @@ font-weight: bolder; color: var(--global-font); } - + p { margin-top: 0px; } @@ -48,7 +48,7 @@ .main-wrapper-article { display: flex; margin-top: var(--header-height); - + .article { flex-grow: 1; padding: var(--documentation-padding); @@ -61,11 +61,11 @@ padding-right: 1.5rem; transition: .2s ease-in-out; } - + .article-toc { flex: 0 0 16rem; font-size: .75rem; - + .article-toc-content { width: 16rem; position: sticky; @@ -74,7 +74,7 @@ overflow-x: hidden; overflow-y: auto; transition: .2s ease-in-out; - + h3 { border-bottom: none; } @@ -85,7 +85,7 @@ overflow: auto; max-height: calc(90vh); } - + #TableOfContents, .resources { ul { list-style: none; @@ -106,13 +106,6 @@ font-weight: bolder; } } - - i { - &:hover { - font-weight: bolder; - font-weight: 900; - } - } } } } @@ -126,12 +119,12 @@ } } } - + .toc-mobile { h3 { border-bottom: none; } - + #TableOfContents, .resources { ul { list-style: none; @@ -152,13 +145,7 @@ font-weight: bolder; } } - - i { - &:hover { - font-weight: bolder; - font-weight: 900; - } - } + } } } @@ -168,7 +155,7 @@ .main-wrapper-book { display: flex; margin-top: var(--header-height); - + .book { flex-grow: 1; padding: var(--documentation-padding); @@ -192,28 +179,28 @@ border: 1px solid var(--lines-color); } } - + .buttons { display: flex; - + .prev, .next { display: flex; flex-direction: row; align-items: center; - + i { padding: 1rem; } } - + .next { margin-left: auto; } - + .container { display: flex; flex-direction: column; - + .direction { font-weight: bolder; } @@ -221,12 +208,12 @@ } } - + .book-toc { flex: 0 0 16rem; font-size: .75rem; background-color: var(--global-background-color); - + .book-toc-content { width: 16rem; position: sticky; @@ -235,7 +222,7 @@ overflow-x: hidden; overflow-y: auto; transition: .2s ease-in-out; - + h3 { border-bottom: none; } @@ -245,7 +232,7 @@ overflow: auto; max-height: calc(90vh); } - + #TableOfContents, .resources { ul { list-style: none; @@ -266,13 +253,7 @@ font-weight: bolder; } } - - i { - &:hover { - font-weight: bolder; - font-weight: 900; - } - } + } } } @@ -286,19 +267,19 @@ } } } - + .book-menu input.toggle+label+ul { display:none } .book-menu input.toggle:checked+label+ul { display:block } - + .book-menu { flex: 0 0 16rem; font-size: .75rem; background-color: var(--global-background-color); - + .book-menu-content { width: 16rem; position: sticky; @@ -313,7 +294,7 @@ border-bottom: none; padding-left: .5rem; } - + input.toggle + .icon::after { display: flex; align-items: center; @@ -321,7 +302,7 @@ text-rendering: auto; content: "\f105"; } - + input.toggle:checked + .icon::after { display: flex; align-items: center; @@ -329,12 +310,12 @@ text-rendering: auto; content: "\f107"; } - + #MenuContents { position: sticky; overflow: auto; max-height: calc(90vh); - + ul { list-style: none; margin: 0; @@ -343,7 +324,7 @@ li { margin: 0; - + label { display: flex; justify-content: space-between; @@ -359,30 +340,30 @@ border-left: 1px solid var(--lines-color); font-weight: bolder; } - + ul { li { padding-left: 10px; - + a { font-weight: normal; border-left: 3px solid var(--lines-color); } } - + } - + } } } } } - + .toc-mobile { h3 { border-bottom: none; } - + #TableOfContents, .resources { ul { list-style: none; @@ -403,13 +384,7 @@ font-weight: bolder; } } - - i { - &:hover { - font-weight: bolder; - font-weight: 900; - } - } + } } } @@ -433,7 +408,7 @@ input.toggle { .article-toc { display: none; } - + .book-toc { display: none; } @@ -476,7 +451,7 @@ input.toggle { right: 0; } } - + } @media (min-width: 55em) { @@ -486,5 +461,5 @@ input.toggle { .book-menu-mobile { display: none; } - + } diff --git a/documentation/themes/beastie/layouts/articles/list.html b/documentation/themes/beastie/layouts/articles/list.html index 94a7c88787..2954accc8b 100644 --- a/documentation/themes/beastie/layouts/articles/list.html +++ b/documentation/themes/beastie/layouts/articles/list.html @@ -40,13 +40,14 @@

{{ i18n "toc" }}

{{ .TableOfContents }}
- + {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }} +
  • {{ i18n "edit-page" }}
  • - --> + diff --git a/documentation/themes/beastie/layouts/articles/single.html b/documentation/themes/beastie/layouts/articles/single.html index 94a7c88787..2954accc8b 100644 --- a/documentation/themes/beastie/layouts/articles/single.html +++ b/documentation/themes/beastie/layouts/articles/single.html @@ -40,13 +40,14 @@

    {{ i18n "toc" }}

    {{ .TableOfContents }}
    - + {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }} +
  • {{ i18n "edit-page" }}
  • - --> + diff --git a/documentation/themes/beastie/layouts/books/list.html b/documentation/themes/beastie/layouts/books/list.html index fad22d20e8..251a7a625e 100644 --- a/documentation/themes/beastie/layouts/books/list.html +++ b/documentation/themes/beastie/layouts/books/list.html @@ -80,13 +80,14 @@

    {{ i18n "toc" }}

    {{ .TableOfContents }}
    - + {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }} +
  • {{ i18n "edit-page" }}
  • - --> + diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html index fad22d20e8..251a7a625e 100644 --- a/documentation/themes/beastie/layouts/books/single.html +++ b/documentation/themes/beastie/layouts/books/single.html @@ -80,13 +80,14 @@

    {{ i18n "toc" }}

    {{ .TableOfContents }}
    - + {{ $editUrl := printf "%s%s/%s" $.Site.Params.editBaseUrl $.Site.Home.Language .Page.File }} +
  • {{ i18n "edit-page" }}
  • - --> +