| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
| |
PR: 274073
Sponsored by: Daifressh
|
| |
|
|
| |
The same has been made for the HTML build on 8548086.
|
| |
|
|
|
|
|
| |
- Upgrade MacOS build instructions
- Remove tip about use Hugo 0.90 or higher
Differential Revision: https://reviews.freebsd.org/D41036
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This way, it will be easier to identify warnings and errors from Hugo
for anyone when working and building the website or the documentation
portal.
On CI, the builds have verbose and debug options enabled:
```
$ cd doc
$ make HUGO_ARGS="--verbose --debug"
```
|
| |
|
|
|
|
| |
Approved by: carlavilla@
Reviewed by: Jose Luis Duran <jlduran_gmail.com>
Differential Revision: https://reviews.freebsd.org/D37143
|
| |
|
|
|
|
|
|
|
|
|
| |
As this is a new language in the FreeBSD documentation, other
files/translations were added together.
Reviewed by: dbaio (translating it back to English)
Approved by: dbaio (doceng)
Differential Revision: https://reviews.freebsd.org/D34599
Co-authored-by: Danilo G. Baio <dbaio@FreeBSD.org>
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm very pleased to announce the release of
our new Documentation Portal.
Key features:
* Responsive
* Modern design
* Theme support: Light, Dark, High contrast
* Removed Python dependency
Acknowledgment:
* Alexander Leidinger <netchild (at) FreeBSD.org>
* Baptiste Daroussin <bapt (at) FreeBSD.org>
* Benedict Reuschling <bcr (at) freebsd.org>
* Daniel Ebdrup Jensen <debdrup (at) FreeBSD.org>
* Danilo G. Baio <dbaio (at) FreeBSD.org>
* Dave Cottlehuber <dch (at) FreeBSD.org>
* Ed Maste <emaste (at) FreeBSD.org>
* Fernando ApesteguĂa <fernape (at) FreeBSD.org>
* Pedro Giffuni <pfg (at) FreeBSD.org>
* Joseph Mingrone <jrm (at) ftfl.ca>
* Rocky Hotas <rockyhotas (at) firemail.cc>
* Pau Amma <pauamma (at) gundo.com>
* The FreeBSD Foundation
Approved by: core, doceng
|
| | |
|
| | |
|
| |
|
|
|
| |
Reviewed by: carlavilla
Differential Revision: https://reviews.freebsd.org/D32867
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allow to build the documentation offline using Hugo
* Fix link problems
* Remove SVN entities
* Fix lang problems to help weblate
* Move all the AsciiDoctor translations to the shared folder to
help weblate
* Allow the possibility to build each document. For example each
document can be edited in and watched the result in real time in
VS Code or Vim/NeoVim.
Breaking changes:
Eliminate the possibility of building books or articles.
They must be builded at the same time.
This functionality will be restored when version 0.89.0 is in the
repositories in a couple of weeks.
Reviewed by: dbaio@
Differential Revision: https://reviews.freebsd.org/D31926
|
| |
|
|
|
|
|
|
|
|
| |
With the current requirements, if textproc/docproj is built with PDF
option disabled, you can't build the documentation.
This fixes that, and now asciidoctor-pdf will be checked only when
building PDF.
Reported by: jhb
|
| | |
|
| |
|
|
| |
PR: 256523
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Addition of various HTML targets allowing the build of books, articles
with the choice of the language. For example, to build both en_US and
fr_FR books, use:
make DOC_LANG="en fr" html-books
Documents are installed in documentation/public/lang/. Targets to clean
the builds are also available.
The produced files do not include some metadatas, they are intended for
offline use.
Reviewed by: ceri
Differential Revision: https://reviews.freebsd.org/D30718
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The hugo driven targets currently build all the languages despite
anything set in DOC_LANG or elsewhere.
Have DOC_LANG drive HUGO_DISABLELANGUAGES in order to stop that.
With the caveat that: hugo always has to build en as it's the default
language, so add a warning if it's left out before adding it back in.
Reviewed by: dbaio, ygy
Differential Revision: https://reviews.freebsd.org/D30796
|
| |
|
|
|
| |
Reviewed by: ygy
Differential Revision: https://reviews.freebsd.org/D30925
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we only added languages with content in books/ to the
LANGUAGES variable because they would cause the build to fail, and
this meant that they did not get PDFs built either. It also meant they
could not be included in DOC_LANG as this then break the build.
Add a new variable, ARTICLEONLY_LANGS, to identify them and, with the
safety of the new logic in the tools/book-toc*py scripts to warn if we
miss one, build all of the content by default under the PDF target.
This also makes DOC_LANG safe to use even if there isn't a book in that
language.
|
| |
|
|
|
|
|
|
|
| |
When BIND variable is defined, baseURL/.HOST should not be set to
localhost by default.
Reported by: imp
Reviewed by: imp, ceri, blackend
Differential Revision: https://reviews.freebsd.org/D30656
|
| |
|
|
|
|
|
|
|
| |
This also enables verbose output by default, same behavior we had in the
doc tree before Hugo/Asciidoctor and add --minify to HUGO_ARGS variable
to make it optional.
Reviewed by: ceri, allanjude, imp
Differential Revision: https://reviews.freebsd.org/D30652
|
| |
|
|
| |
Approved by: blackend (mentor)
|
| |
|
|
| |
Approved by: blackend (mentor)
|
| |
|
|
| |
Reported by: ceri
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Addition of various PDF targets allowing the build of books, articles
with the choice of the language. For example, to build both en_US and
fr_FR books, use:
make DOC_LANG="en,fr" pdf-books
Documents are installed in documentation/public/lang/. Targets to clean
the builds are also available.
Reviewed by: ceri, gjb, dbaio
Differential Revision: <https://reviews.freebsd.org/D30331>
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Add the requirements target in order to prompt the user to install the
needed dependencies to be able to run `make run` successfully.
Reviewed by: ygy, debdrup, imp
Approved by: ygy (doc)
Differential Revision: https://reviews.freebsd.org/D30161
|
| |
|
|
|
|
|
| |
If not building the documentation on your local machine, you may need to
access the hugo server from another machine, you may want to run:
make run HOSTNAME=host.example.org BIND=::
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we build our documentation and website we use a hacked version
of www/gohugo that allows for arbitrary asciidoc extensions.
This was added as a patch in r562416.
The suggested pull request[1] this patch was based on was not
accepted "as is" and only allows the execution of extensions in
Ruby's $LOAD_PATH.
With these changes, we add our <docroot>shared/lib directory to
Ruby's library directory so we can load our custom extensions. This
also allows building the docs and website outsite FreeBSD using
upstream and unmodified tools.
Tested with the upcoming vanilla gohugo-0.82 provided by
gohugo's maintainer.
[1] https://github.com/gohugoio/hugo/pull/8131
Patch by: fernape@
Differential Revision: https://reviews.freebsd.org/D29410
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently '/usr/local/bin/python3.7' is used as the value of
PYTHON_CMD. Right now this works because 3.7 is the default version of
Python 3 in the ports tree. However, at some point in the future, this
will be undoubtedly be changed.
It is also possible that users already might be building versions
newer than the default port/package, which needs to be an supported as
well.
In addition, the FDP recommends installing the 'python3' package. This
meta port/package depends on the default version of python, and
automatically creates a symlink to the default version.
With all this in mind, use '/usr/local/bin/python3' is used as the value
of PYTHON_CMD, since this means that the instructions will work
irrespective of which version is assigned.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In order for hugo to build all links correctly, it is necessary to
define baseURL - but in order to do this, we need some way of adding a
hostname. This change adds the HOSTNAME variable to accomplish this.
Another advantage is that if HOSTNAME is set to something other than
localhost, hugo can be run on a different (more powerful) machine which
can shorten the time it takes to build.
A note about this will need to be added to the FDP later.
|
| |
|
|
|
| |
Restore the generation of the TOCs in the Makefile
when running make run
|
| |
|
|
|
|
|
|
| |
This ensures that `make all` will never try to run the internal server.
Instead, the user can run it manually if they need to.
Reviewed-by: gjb, hrs
Differential-Revision: https://reviews.freebsd.org/D28384
|
| |
|
|
|
|
|
|
| |
This instructs make(1) to consider them always out of date, and prevents
foot-shooting if a directory entry with the same name comes into existence.
Reviewed-by: gjb, hrs
Differential-Revision: https://reviews.freebsd.org/D28383
|
| |
|
|
|
|
|
|
| |
This ensures that the build still generally works if one specifies jobs and
multiple targets at the same time.
Reviewed-by: gjb, hrs
Differential-Revision: https://reviews.freebsd.org/D28382
|
| |
|
|
|
|
|
|
| |
The build should strive to not write to the shared space, so symlink these
back to the one copy and remove the prep work needed.
Reviewed-by: gjb, hrs
Differential-Revision: https://reviews.freebsd.org/D28381
|
|
|
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.
To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].
Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation
[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/
Approved by: doceng, core
|