Guidedog मैनुअल 0.6.3
भाषा
इस पृष्ठ पर
Guidedog / दस्तावेज़ 0.6.3

एक छोटी किताब बनाएँ

वेब पर पाठक लिंक से अलग-अलग पृष्ठ देखता है। किताब को तय क्रम, अध्याय नंबर, पृष्ठ शीर्ष और शुरुआती पृष्ठ चाहिए।

toctree दोनों जोड़ता है: वही ट्री वेब की साइडबार और PDF का अध्याय क्रम तय करता है।

मूल toctree वेब नेविगेशन और ब्रेडक्रम्ब बनाता है; प्रिंट में नंबर वाले अध्याय देता है।
चित्र 4 एक toctree से वेब नेविगेशन और किताब का क्रम मिलता है।

1. नया अध्याय जोड़ें

notes प्रोजेक्ट में measurement.rst बनाएँ:

कोड सूची 1 notes/measurement.rst
Measurement
===========

A scientific measurement consists of a numerical magnitude and an explicit unit.
Always report both. A bare number leaves the reader guessing.

.. _measurement-units:

Units of measurement
--------------------

Maintain a single, consistent unit system within every comparison.

When working with the International System of Units (SI):

* Length is expressed in meters (m).
* Mass is expressed in kilograms (kg).
* Time is expressed in seconds (s).

Prefixes scale units by powers of ten, simplifying very large or small values.

शीर्षक के ऊपर .. _measurement-units: संदर्भ का लक्ष्य है। यह वेब और प्रिंट दोनों में काम करता है।

2. पढ़ने का क्रम रखें

notes/index.rst खोलकर विषय-सूची लिखें:

कोड सूची 2 notes/index.rst
Field Notes
===========

These notes explain how to perform reliable physical measurements and document
them clearly.

.. toctree::
   :maxdepth: 2
   :numbered:

   measurement

Next steps:

* Begin with :doc:`measurement`.
* Review the standard unit conventions in :ref:`measurement-units`.

toctree के विकल्प:

  • :maxdepth: 2 विषय-सूची में उपशीर्षक की गहराई तय करता है।
  • :numbered: “1. Measurement” और “1.1 Units of measurement” जैसे क्रमिक नंबर चालू करता है।
  • measurement में फ़ाइल का नाम है, बिना .rst के।

क्रॉस-रेफ़रेंस का रूप:

  • :doc:`measurement` पथ से अध्याय जोड़ता है।
  • :ref:`measurement-units` लेबल वाले हिस्से पर जाता है। PDF शीर्षक देता है; page-ref से पृष्ठ संख्या भी जुड़ सकती है। काम करता उदाहरण प्रोजेक्ट की थीम बनाना में है।

3. Graphviz चित्र जोड़ें

Guidedog में Graphviz नेटिव है। वेब के लिए SVG और प्रिंट के लिए वेक्टर चित्र बनते हैं; बाहरी ब्राउज़र रेंडरर नहीं चाहिए।

notes/measurement.rst में चित्र जोड़ें:

Comparison workflow
-------------------

Before comparing two experimental values, convert both to a shared base unit:

.. graphviz::
   :class: graphviz-adaptive
   :caption: Converting values to a common base unit before comparison.
   :alt: Raw experimental values are converted to a shared unit before comparison.

   digraph comparison {
     graph [rankdir=LR, bgcolor="transparent", pad="0.2"];
     node [shape=box, style="rounded,filled", fillcolor="#edf5f2",
           color="#216553", fontname="Helvetica", fontcolor="#16382f", fontsize=12];
     edge [color="#216553"];

     "Raw values" -> "Unit conversion" -> "Common unit" -> "Comparison";
   }

:caption: कैप्शन देता है। नंबर के लिए notes/conf.toml में numfig = true रखें। :alt: स्क्रीन रीडर का वैकल्पिक टेक्स्ट है।

4. किताब बनाएँ और जाँचें

प्रोजेक्ट फिर बनाएँ:

guidedog build html notes -W
guidedog build pdf notes -W

दोनों रूप जाँचें:

  • HTML: notes/_build/html/index.html खोलें। साइडबार में अध्याय नंबर हैं। “1. Measurement” से ब्रेडक्रम्ब और SVG वाला पृष्ठ खुलता है।
  • PDF: notes/_build/pdf/field-notes-en.pdf खोलें। विषय-सूची अध्याय और पृष्ठ देती है। चित्र वेक्टर रहता है और संदर्भ सही लक्ष्य पर जाते हैं।

5. आगे क्या पढ़ें

दोनों रूप समझने के बाद ये विषय पढ़ें: