Commit d70fb568a3d58ef61605c8d5cf537b8668593455

Authored by Jay Berkenbilt
1 parent 0e6b6a24

Specify highlight language instead of using text codeblocks

manual/cli.rst
... ... @@ -13,7 +13,7 @@ Basic Invocation
13 13  
14 14 When running qpdf, the basic invocation is as follows:
15 15  
16   -.. code-block:: text
  16 +::
17 17  
18 18 qpdf [ options ] { infilename | --empty } outfilename
19 19  
... ... @@ -456,7 +456,7 @@ Encryption Options
456 456 To change the encryption parameters of a file, use the --encrypt flag.
457 457 The syntax is
458 458  
459   -.. code-block:: text
  459 +::
460 460  
461 461 --encrypt user-password owner-password key-length [ restrictions ] --
462 462  
... ... @@ -620,7 +620,7 @@ selecting pages from one or more input files. Whatever file is given as
620 620 the primary input file is used as the starting point, but its pages are
621 621 replaced with pages as specified.
622 622  
623   -.. code-block:: text
  623 +::
624 624  
625 625 --pages input-file [ --password=password ] [ page-range ] [ ... ] --
626 626  
... ... @@ -761,7 +761,7 @@ copying all of that from the first file. For example, to take pages 1
761 761 through 5 from a :file:`infile.pdf` while preserving
762 762 all metadata associated with that file, you could use
763 763  
764   -.. code-block:: text
  764 +::
765 765  
766 766 qpdf infile.pdf --pages . 1-5 -- outfile.pdf
767 767  
... ... @@ -769,7 +769,7 @@ If you wanted pages 1 through 5 from
769 769 :file:`infile.pdf` but you wanted the rest of the
770 770 metadata to be dropped, you could instead run
771 771  
772   -.. code-block:: text
  772 +::
773 773  
774 774 qpdf --empty --pages infile.pdf 1-5 -- outfile.pdf
775 775  
... ... @@ -778,7 +778,7 @@ If you wanted to take pages 1 through 5 from
778 778 :file:`file2.pdf` in reverse, taking document-level
779 779 metadata from :file:`file2.pdf`, you would run
780 780  
781   -.. code-block:: text
  781 +::
782 782  
783 783 qpdf file2.pdf --pages file1.pdf 1-5 . 15-11 -- outfile.pdf
784 784  
... ... @@ -787,7 +787,7 @@ file called :file:`encrypted.pdf` with password
787 787 ``pass`` and repeat it twice in an output file, and if you wanted to
788 788 drop document-level metadata but preserve encryption, you would use
789 789  
790   -.. code-block:: text
  790 +::
791 791  
792 792 qpdf --empty --copy-encryption=encrypted.pdf \
793 793 --encryption-file-password=pass \
... ... @@ -825,7 +825,7 @@ Starting with qpdf 8.4, it is possible to overlay or underlay pages from
825 825 other files onto the output generated by qpdf. Specify overlay or
826 826 underlay as follows:
827 827  
828   -.. code-block:: text
  828 +::
829 829  
830 830 { --overlay | --underlay } file [ options ] --
831 831  
... ...
manual/conf.py
... ... @@ -15,3 +15,4 @@ html_theme = 'nature'
15 15 html_theme_options = {
16 16 "body_max_width": None,
17 17 }
  18 +highlight_language = 'none'
... ...
manual/installation.rst
... ... @@ -75,7 +75,7 @@ Build Instructions
75 75  
76 76 Building qpdf on UNIX is generally just a matter of running
77 77  
78   -.. code-block:: text
  78 +::
79 79  
80 80 ./configure
81 81 make
... ...