@@ -554,6 +554,32 @@ <h2 id="implementation">Source code</h2>
554
554
< p > The source code for the experimental HTML5 fork of Tidy can be found at
555
555
< a href ="https://github.com/w3c/tidy-html5 "> https://github.com/w3c/tidy-html5</ a > .
556
556
557
+ < h2 id =building-cli > Building the tidy command-line tool</ h2 >
558
+ < p > For Linux/BSD/OSX platforms, you can build and install the
559
+ < code > tidy</ code > command-line tool from the source code using the
560
+ following steps.</ p >
561
+
562
+ < ol >
563
+ < li > < code > make -C build/gmake/</ code > </ li >
564
+ < li > < code > make install -C build/gmake/</ code > </ li >
565
+ </ ol >
566
+
567
+ < p > Note that you will either need to run < code > make install</ code > as root,
568
+ or with < code > sudo make install</ code > .</ p >
569
+
570
+ < h2 id =building-library > Building the libtidy shared library</ h2 >
571
+ < p > For Linux/BSD/OSX platforms, you can build and install the
572
+ < code > tidylib</ code > shared library (for use in building other
573
+ applications) from the source code using the following steps.</ p >
574
+
575
+ < ol >
576
+ < li > sh build/gnuauto/setup.sh && ./configure && make</ li >
577
+ < li > make install</ li >
578
+ </ ol >
579
+
580
+ < p > Note that you will either need to run < code > make install</ code > as root,
581
+ or with < code > sudo make install</ code > .</ p >
582
+
557
583
< h2 id =acks > Acknowledgements</ h2 >
558
584
< p > Dave Raggett has a list of
559
585
< a href ="http://www.w3.org/People/Raggett/tidy/#acks "> Acknowledgements</ a >
@@ -590,6 +616,8 @@ <h2 id=acks>Acknowledgements</h2>
590
616
< li > < a href ="#xml "> Correcting well-formedness errors in XML markup</ a >
591
617
< li > < a href ="#scripts "> Using Tidy from scripts</ a >
592
618
< li > < a href ="#implementation "> Source code</ a >
619
+ < li > < a href ="#build-cli "> Building the tidy command-line tool</ a >
620
+ < li > < a href ="#build-library "> Building the tidylib shared library</ a >
593
621
< li > < a href ="#acks "> Acknowledgements</ a >
594
622
</ ol >
595
623
</ div >
0 commit comments