From fbf06493226442344251bbface8a7cf27bfeed2d Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 14 Oct 2024 12:31:34 +0200 Subject: [PATCH] use tables-common to unify my tables --- .../workflows/generate-system-calls-html.yml | 1 + .gitmodules | 4 + templates/common | 1 + templates/syscalls.html.j2 | 119 ++++-------------- 4 files changed, 27 insertions(+), 98 deletions(-) create mode 100644 .gitmodules create mode 160000 templates/common diff --git a/.github/workflows/generate-system-calls-html.yml b/.github/workflows/generate-system-calls-html.yml index 2cb8132..86501bb 100644 --- a/.github/workflows/generate-system-calls-html.yml +++ b/.github/workflows/generate-system-calls-html.yml @@ -26,6 +26,7 @@ jobs: with: path: syscalls-table/ ref: master + submodules: true - name: Create Python virtualenv working-directory: syscalls-table/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..fec5aa3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "templates/common"] + path = templates/common + url = https://github.com/hrw/tables-common.git + branch = main diff --git a/templates/common b/templates/common new file mode 160000 index 0000000..eeffc4e --- /dev/null +++ b/templates/common @@ -0,0 +1 @@ +Subproject commit eeffc4e095015d9885e8ce708529307f08ddeb45 diff --git a/templates/syscalls.html.j2 b/templates/syscalls.html.j2 index 9b7d640..6674f1a 100644 --- a/templates/syscalls.html.j2 +++ b/templates/syscalls.html.j2 @@ -22,78 +22,8 @@ - - - - - - - - - - - - - - - - - - - - - +{% include "common/datatables-js-css.inc.j2" %} +{% include "common/css.inc.j2" %} @@ -132,33 +62,9 @@ table.syscalls tbody tr.odd td {
  • there is now Python module for querying this data: "system_calls"
  • -

    Author info

    -

    - System calls table is maintained by Marcin Juszkiewicz — AArch64/Arm developer working at Red Hat as Linaro assignee. -

    - -

    My table pages

    - -

    How to help

    -

    - Sources used to generate table are available in git repository at github. - Patches are always welcomed. -

    -

    - If this table helped you in some project then please leave a comment in - issue on GitHub. -

    - -

    Build info

    -

    Table generated on {{ generate_time }} UTC using data from {{ syscalls.linux_version }} kernel source.

    +{% include "common/author-tables-help.inc.j2" %} - +
    @@ -183,4 +89,21 @@ table.syscalls tbody tr.odd td {
    system call
    +