From 92993d9b5c0a2c24ea0c025115f47d179e09270d Mon Sep 17 00:00:00 2001
From: Deepak Khatri <lorforlinux@beagleboard.org>
Date: Sat, 4 Mar 2023 00:59:26 +0530
Subject: [PATCH] Add raw latex comment option

Using this we can hide images or other content from PDF that we otherwise want to see at least on the Web version.
---
 _static/latex/preamble.tex  |  1 +
 boards/beagleplay/index.rst | 47 ++++++++++---------------------------
 2 files changed, 13 insertions(+), 35 deletions(-)

diff --git a/_static/latex/preamble.tex b/_static/latex/preamble.tex
index f5b3392a..e13368a5 100644
--- a/_static/latex/preamble.tex
+++ b/_static/latex/preamble.tex
@@ -8,6 +8,7 @@
 \usepackage{lscape}
 \usepackage{longtable}
 \usepackage{fontspec}
+\usepackage{comment}
 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
 \setmainfont{DejaVuSans}
 \setmonofont{FreeMono}
diff --git a/boards/beagleplay/index.rst b/boards/beagleplay/index.rst
index 939b0115..33513f46 100644
--- a/boards/beagleplay/index.rst
+++ b/boards/beagleplay/index.rst
@@ -12,6 +12,10 @@ BeaglePlay
     :align: center
     :alt: BeaglePlay board
 
+.. raw:: latex
+   
+   \begin{comment}
+
 .. grid:: 1 1 2 3
    :margin: 4 4 0 0
    :gutter: 4
@@ -31,52 +35,21 @@ BeaglePlay
 
       Introduction to BeaglePlay board.
 
-
-   .. grid-item-card::
-      :link: beagleplay-change-history
-      :link-type: ref
-
-      **02. Change History**
-      ^^^
-
-      .. image:: images/chapter-thumbnails/02-change-history.jpg
-         :align: center
-         :alt: BeaglePlay Chapter02 thumbnail
-
-      +++
-
-      Hardware, Software, and Documentation change history.
-
    .. grid-item-card:: 
       :link: beagleplay-quick-start
       :link-type: ref
 
-      **03. Quick start**
+      **02. Quick start**
       ^^^
 
-      .. image:: images/chapter-thumbnails/03-quick-start.jpg
+      .. image:: images/chapter-thumbnails/02-quick-start.jpg
          :align: center
-         :alt: BeaglePlay Chapter03 thumbnail
+         :alt: BeaglePlay Chapter02 thumbnail
 
       +++
 
       Getting started guide.
 
-   .. grid-item-card:: 
-      :link: beagleplay-detailed-overview
-      :link-type: ref
-
-      **04. Detailed overview**
-      ^^^
-
-      .. image:: images/chapter-thumbnails/04-detailed-overview.jpg
-         :align: center
-         :alt: BeaglePlay Chapter04 thumbnail
-
-      +++
-
-      Detailed overview.
-
    .. grid-item-card:: 
       :link: beagleplay-high-level-specifications
       :link-type: ref
@@ -197,13 +170,17 @@ BeaglePlay
 
       BeaglePlay Additional Pictures
 
+.. raw:: latex
+
+   \end{comment}
+
 .. toctree::
    :maxdepth: 1
    :hidden:
 
    01-introduction
    02-change-history
-   03-quick-start
+   02-quick-start
    04-detailed-overview
    05-high-level-specifications
    06-detailed-hardware-design
-- 
GitLab