Closed wpferguson closed 4 years ago
You need to use the "server" command with hugo:
hugo
server
-D --disableFastRender
You also want to make sure you dont have any firewall stopping you from accessing the web server.
Actually I dd use server, but I tried again just in case.
hugo server -D
| EN
+------------------+-----+
Pages | 38
Paginator pages | 0
Non-page files | 142
Static files | 1
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 77 ms Watching for changes in /home/bill/src/wpferguson/dtdocs/{content,data,layouts,static} Watching for config changes in /home/bill/src/wpferguson/dtdocs/config.yaml Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at http://localhost:1313/dtdocs/ (bind address 127.0.0.1) Press Ctrl+C to stop
It still only shows a blank page. If I go to http://localhost:1313/dtdocs/index.xml I get an error about the file not having any style information associated with it. I notice that the config.yaml file has the line
- source: ./themes//hugo-darktable-docs-theme/assets/node_modules/fork-awesome/fonts
but that path doesn't exist.
did you do the yarm install in the assets directories of both the bootstrap and darktable themes?
On Sun, 25 Oct 2020 at 17:57, wpferguson notifications@github.com wrote:
Actually I dd use server, but I tried again just in case.
hugo server -D
| EN
+------------------+-----+ Pages | 38 Paginator pages | 0 Non-page files | 142 Static files | 1 Processed images | 0 Aliases | 0 Sitemaps | 1 Cleaned | 0
Total in 77 ms Watching for changes in /home/bill/src/wpferguson/dtdocs/{content,data,layouts,static} Watching for config changes in /home/bill/src/wpferguson/dtdocs/config.yaml Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at http://localhost:1313/dtdocs/ (bind address 127.0.0.1) Press Ctrl+C to stop
It still only shows a blank page. If I go to http://localhost:1313/dtdocs/index.xml I get an error about the file not having any style information associated with it. I notice that the config.yaml file has the line
- source: ./themes//hugo-darktable-docs-theme/assets/node_modules/fork-awesome/fonts
but that path doesn't exist.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/elstoc/dtdocs/issues/101#issuecomment-716103319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPXZLPQXYWPBCLZ3PA6JP3SMPD4JANCNFSM4S57W35A .
Sorry, this is my fault, it looks like I haven't updated the README yet.
But you need to run the yarn command in the the directory ./themes/hugo-darktable-docs-theme/assets/
I've already updated this in the CI, that is why the site on github builds, but sadly I forgot the read me file. :(
-mica
On 10/25/20 12:08 AM, Matt Maguire wrote:
did you do the yarm install in the assets directories of both the bootstrap and darktable themes?
On Sun, 25 Oct 2020 at 17:57, wpferguson notifications@github.com wrote:
Actually I dd use server, but I tried again just in case.
hugo server -D
| EN
+------------------+-----+ Pages | 38 Paginator pages | 0 Non-page files | 142 Static files | 1 Processed images | 0 Aliases | 0 Sitemaps | 1 Cleaned | 0
Total in 77 ms Watching for changes in /home/bill/src/wpferguson/dtdocs/{content,data,layouts,static} Watching for config changes in /home/bill/src/wpferguson/dtdocs/config.yaml Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at http://localhost:1313/dtdocs/ (bind address 127.0.0.1) Press Ctrl+C to stop
It still only shows a blank page. If I go to http://localhost:1313/dtdocs/index.xml I get an error about the file not having any style information associated with it. I notice that the config.yaml file has the line
- source:
./themes//hugo-darktable-docs-theme/assets/node_modules/fork-awesome/fonts
but that path doesn't exist.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/elstoc/dtdocs/issues/101#issuecomment-716103319, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIPXZLPQXYWPBCLZ3PA6JP3SMPD4JANCNFSM4S57W35A .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elstoc/dtdocs/issues/101#issuecomment-716104243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARQ4Z26UMO4SBPY4TYUW3SMPFIVANCNFSM4S57W35A.
Did yarn install in both asset directories. Started hugo server and pages still would not load.
I'm on Ubuntu 18.04, so I checked my hugo version. It was on version 0.40.0 so I went and got the latest version, 0.76.5. Installed that, started hugo server and got
~/src/wpferguson/dtdocs$ hugo server -D Start building sites … Built in 640 ms Error: Error building site: TOCSS: failed to transform "sass/main.scss" (text/x-scss): resource "scss/dtdocs/sass/main.scss_81af0adbb9b64abcfee34ad338e9cd38" not found in file cache
Thought maybe 0.76.5 was too new, so downloaded and installed 0.75.1. Wiped out my dtdocs and re-cloned it. Did git submodule update --init --recursive Did yarn install in both asset directories
Then....
~/src/wpferguson/dtdocs$ hugo server Start building sites … Built in 622 ms Error: Error building site: TOCSS: failed to transform "sass/main.scss" (text/x-scss): resource "scss/dtdocs/sass/main.scss_81af0adbb9b64abcfee34ad338e9cd38" not found in file cache
Removed /tmp/hugo_cache and tried again. Same error.
You need extened hugo, not standard.
niedz., 25 paź 2020 o 19:16 wpferguson notifications@github.com napisał(a):
Did yarn install in both asset directories. Started hugo server and pages still would not load.
I'm on Ubuntu 18.04, so I checked my hugo version. It was on version 0.40.0 so I went and got the latest version, 0.76.5. Installed that, started hugo server and got
~/src/wpferguson/dtdocs$ hugo server -D Start building sites … Built in 640 ms Error: Error building site: TOCSS: failed to transform "sass/main.scss" (text/x-scss): resource "scss/dtdocs/sass/main.scss_81af0adbb9b64abcfee34ad338e9cd38" not found in file cache
Thought maybe 0.76.5 was too new, so downloaded and installed 0.75.1. Wiped out my dtdocs and re-cloned it. Did git submodule update --init --recursive Did yarn install in both asset directories
Then....
~/src/wpferguson/dtdocs$ hugo server Start building sites … Built in 622 ms Error: Error building site: TOCSS: failed to transform "sass/main.scss" (text/x-scss): resource "scss/dtdocs/sass/main.scss_81af0adbb9b64abcfee34ad338e9cd38" not found in file cache
Removed /tmp/hugo_cache and tried again. Same error.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elstoc/dtdocs/issues/101#issuecomment-716188776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRRKFPN5CDHLW33NVH2SN3SMRTOVANCNFSM4S57W35A .
-- Pozdrawiam, Hubert Kowalski
Thanks @johnny-bit, that got it.
Cloned from git.
Did git submodule update --init --recursive.
Built bootstrap modules with yarn.
Started server with
hugo -D --disableFastRender
Opened http://localhost:1313/dtdocs/ in my browser (Firefox). Blank page displays. No errors in browser or console. Rebuilt bootstrap with npm. Still have blank pages.
Did I miss something?
Tried chrome with no luck either
Also tried http://localhost:1313/dtdocs/index.xml and just got raw xml.