Website patch request: documentation style update

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Website patch request: documentation style update
Дата
Msg-id 31464.1587156281@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Website patch request: documentation style update  ("Jonathan S. Katz" <jkatz@postgresql.org>)
Список pgsql-www
In the thread at [1], we agreed to adopt a new layout for the
documentation's tables of functions/operators, which will require
a "hanging indent" layout for cells within those tables.  So far
as I've found, there's no good way to specify that within the .sgml
files proper.  The preferred way to do it seems to be to attach a
"role" attribute to affected <entry> tags, and then key off of that
to apply the appropriate style adjustments in CSS.  So I'd like to
request that the website be updated more or less per the attached.

It's likely that I've missed something about how best to do that ---
I'm not even totally sure that main.css is the best place to
put this change.  So feel free to adjust as you see fit.

            regards, tom lane

[1] https://www.postgresql.org/message-id/flat/8691.1586798003%40sss.pgh.pa.us

--- main.css.orig    2020-04-16 18:46:26.040658279 -0400
+++ main.css    2020-04-16 19:18:15.689371719 -0400
@@ -791,6 +791,20 @@
   word-break: unset;
 }

+/* formatting for entries in tables of functions: indent all but first line */
+
+#docContent table.table th.functableentry {
+    padding-left: 5em;
+    text-indent: -5em;
+    text-align: left;
+}
+
+#docContent table.table td.functableentry {
+    padding-left: 5em;
+    text-indent: -5em;
+    text-align: left;
+}
+
 /**
  * Titles, Navigation
  */

В списке pgsql-www по дате отправления:

Предыдущее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: SLES 12.5 repo problem
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Website patch request: documentation style update