Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:27
erlang
0181-Automatically-update-copyright-year-in-doc...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0181-Automatically-update-copyright-year-in-docs.patch of Package erlang
From 79d9d1ffc44fd00799f33945f8d8b94b4be31449 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Fri, 24 May 2024 08:26:23 +0200 Subject: [PATCH 1/4] Automatically update copyright year in docs --- make/ex_doc.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make/ex_doc.exs b/make/ex_doc.exs index 8a480941d3..d73c6a5efe 100644 --- a/make/ex_doc.exs +++ b/make/ex_doc.exs @@ -146,6 +146,8 @@ extras = annotations = Access.get(local_config, :annotations_for_docs, fn _ -> [] end) +current_datetime = System.os_time() |> DateTime.from_unix!(:native) + config = [ proglang: :erlang, source_url_pattern: source_url_pattern, @@ -153,7 +155,7 @@ config = [ logo: Path.join(:code.root_dir(), "system/doc/assets/erlang-logo.png"), before_closing_head_tag: fn _ -> "<style>.dark img { background-color: white; }</style>" end, before_closing_footer_tag: fn _ -> - ~S'<p>Copyright © 1996-2023 <a href="https://www.ericsson.com">Ericsson AB</a></p>' + ~s'<p>Copyright © 1996-#{current_datetime.year} <a href="https://www.ericsson.com">Ericsson AB</a></p>' end, annotations_for_docs: fn md -> if Map.has_key?(md, :exported) && not md.exported do -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor