In my developing Hugo web site a content file is generating a server error that it did not do before. The front matter in the education.md file is:
---
identifier: "schools"
title: "Education"
date: "2022-10-18"
description: "My academic traning."
menu:
main:
parent: "about"
weight: 3
---
I ran this front matter through an online YAML lint and it reported an error on line 8 (parent), position 5 (p}. The hugo server reports it on line 7 (main:). This is the same format as in the past and the same as other .md files in the parent directory. I'm not seeing why there's an error so I cannot fix it.
There is a problem here:
menu:
main:
parent: "about"
weight: 3
parent cannot both have a scalar value and be a dictionary. That is, you can do this:
main:
parent: "about"
Or you can do this:
main:
parent:
weight: 3
But what you have is not valid YAML. You probably want:
menu:
main:
parent: "about"
weight: 3
...but I haven't checked the hugo docs to verify that.
Related
I have some documents on Sphinx 2.x. In addition to an HTML version (make html), I want to export it in a PDF version as well, preferably using rst2pdf:
My documents have some figure images. Here's a snippet in index.rst.
.. figure:: ./_images/img01.png
Caption for img01.
.. figure:: ./_images/img02.png
Caption for img02.
I want to add "Figure <#>" in the beginning of every caption. Does anyone have any thoughts? Please note
numfig doesn't work with rst2pdf.
Update (3/22/2020). Add the following lines in conf.py.
numfig = True
numfig_format = {
'figure': 'Figure %s.'
}
numfig_secnum_depth = 1
In the HTML output it works.
In the rst2PDF version, you don't see "Figure #".
The :counter: directive doesn't work with Sphinx; I get the following error:
.. figure:: ./_images/img01.png
Figure :counter:`figure`. Caption for img01.
$ sphinx-build -b pdf ./source/ ./build/
Running Sphinx v2.4.4
/home/sarah/sphinx_test/lib/python3.6/importlib/__init__.py:126: RemovedInSphinx30Warning: sphinx.environment.NoUri is deprecated.
Check CHANGES for Sphinx API modifications.
return _bootstrap._gcd_import(name[level:], package, level)
Initiated sphinxcontrib-images backend: `sphinxcontrib_images_lightbox2.lightbox2:LightBox2`
building [mo]: targets for 0 po files that are out of date
building [pdf]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index
Exception occurred:
File "/home/sarah/sphinx_test/lib/python3.6/site-packages/docutils/nodes.py", line 439, in copy
return self.__class__(reprunicode(self), rawsource=self.rawsource)
AttributeError: 'CounterNode' object has no attribute 'rawsource'
The full traceback has been saved in /tmp/sphinx-err-1bzghsm6.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
I started an empty safari app extension in Xcode, I didn't change any code from the boilerplate.
When I run this new and empty extension and choose safari to open it, something went wrong:
Could not attach to pid : “13069”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: Error 1
--
Error 1
Domain: IDEDebugSessionErrorDomain
Code: 3
--
I am totally new to xcode and safari extension, hope someone could help.
Just clean the build folder with Cmd + Shift + K and rerun the extension project, then it works.
But still, don't know what caused this problem.
I'm getting this error in Firefox 51.0.1 conole:
downloadable font: maxp: bad max_zones: 0 (font-family: "t" style:normal weight:normal stretch:normal src index:0) source: data:application/font-woff2;base64,d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg (unknown)
Chrome does not show this, and Safari shows several warnings that say Unexpected CSS token: : woff.css:1:# where # is a 4 digit number. There are no woff.css files in my project directory, only woff.json and woff2.json, so I don't know what to make of that.
Any ideas?
Here's an example (2022) of the error as asked above:
GET https://fonts.gstatic.com/s/chakrapetch/v8/cIflMapbsEk7TDLdtEz1BwkebIl1R5_F_gUk0w.woff2
[HTTP/2 200 OK 27ms]
The 200 response code suggests the file is served okay (as does an inspection of the response headers).
Error is:
downloadable font: maxp: Bad maxZones: 0 (font-family: "Chakra Petch" style:normal weight:500 stretch:100 src index:0) source: https://fonts.gstatic.com/s/chakrapetch/v8/cIflMapbsEk7TDLdtEz1BwkebIl1R5_F_gUk0w.woff2
When trying to build a fiware/cygnus docker image from the source code, the last part of it, namely the building of the image from the jar with:
docker build -f ./docker/Dockerfile -t fiware/cygnus .
gives the following message in the last step (8) of the building process: "no source files were specified". At this point the building appears to be aborted.
The building was done according: https://github.com/telefonicaid/fiware-cygnus/tree/master/docker (source code from: https://github.com/telefonicaid/fiware-cygnus.git ), and basically amounts to first building the java archive (jar) from the provided source code, and subsequently building the docker image from the jar file.
1) What could be the reason for the message in step 8? Since, according to the documentation, no other steps were mentioned. Also, the "target" directory, which is specifically mentioned in the documentation, appears not to be made.
2) However, there does appear an image, but with no tags (cf the "-t fiware/cygnus" flag in the command mentioned above). Is this a result from the fact that the building was only done up to step 8, leaving an incomplete image?
Many thanks!
Step 8 is
Step 8 : ADD ./target/*.jar /tmp/
This means that probably you haven't had success building the jar.
Replicating the steps with the current HEAD 2a9c87fb7fd6156225e2eed7fbc9792f1d9c5dfe gave me some errors, attributed to the JAVA_HOME variable not properly set.
Please, implement the following changes in your Dockerfiles until we merge the into master:
https://github.com/telefonicaid/fiware-cygnus/pull/695/files
I have a topic file with a version number in it, it is called dummy-v1.2.3.html.md.eco. When rendering this, I get warnings:
info: Welcome to DocPad v6.59.6 (local installation: /export/suppoweb-src/docpad/node_modules/docpad)
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: cleanurls, coffeescript, downloader, eco, highlightjs, less, livereload, marked, partials, related, stylus, text
info: Environment: static
info: Generating...
warning:
Rendering the extension "html" to "3" on "release/topic/dummy-v1.2.3.html.md.eco" didn't do anything.
Explanation here: http://docpad.org/extension-not-rendering
warning:
Rendering the extension "3" to "2" on "release/topic/dummy-v1.2.3.html.md.eco" didn't do anything.
Explanation here: http://docpad.org/extension-not-rendering
warning:
Rendering the extension "html" to "3" on "release/topic/dummy-v1.2.3.html.md.eco" didn't do anything.
Explanation here: http://docpad.org/extension-not-rendering
warning:
Rendering the extension "3" to "2" on "release/topic/dummy-v1.2.3.html.md.eco" didn't do anything.
Explanation here: http://docpad.org/extension-not-rendering
info: Dumped 253 files to the database cache
info: Generated 248/253 files in 26.555 seconds
info: The action completed successfully
info: Shutting down... cya next time!
INFO - web-driver.sh: done
I know I can avoid this by using a different naming scheme (eg dummy-v1-2-3.html.md.eco). However, is it possible to get Docpad to ignore the version number as rendering extensions?