Comments (9)
Hi there! Thanks for taking the time to report this.
I'm pretty sure this because the site is not being served from the root of the URL. Unfortunately this is something that Doctave as of right now does not support.
The good news is that a feature request for this was opened a few days ago and this feature will be coming in the next release!
You can expect a 0.3.0 release within a day or two, after which a quick addition to your doctave.yaml
file should fix the issue.
from doctave.
Thanks! It's better, but search doesn't work.
Here's the output in the console related to doctave:
doctave-app.js?v=1634831097:151 GET https://alestsurko.by/search_index.json 404
(anonymous) @ doctave-app.js?v=1634831097:151
doctave-app.js?v=1634831097:130 GET https://alestsurko.by/assets/prism-ghcolors.css?1634831097 net::ERR_ABORTED 404
setColor @ doctave-app.js?v=1634831097:130
(anonymous) @ doctave-app.js?v=1634831097:207
doctave-app.js?v=1634831097:154 Uncaught (in promise) Error: HTTP error 404
at doctave-app.js?v=1634831097:154
from doctave.
Ok release 0.3.1 is now available and fixes the search issue. Thanks again for taking the time to report the bug!
from doctave.
Ah ok. Thanks! Will wait then.
from doctave.
The 0.3.0 release is out now with support for serving the site from a non-root path. Could you give that a go and see if that solves your issue?
Relevant documentation about how to use the feature can be found in the documentation.
I'm going to close this ticket for now, but feel free to reopen or create a new issue if you run into any problems.
from doctave.
Another nice addition would be to optionally include the base path when running the local server. The path is only needed when deploying to a server, at least for my use case.
from doctave.
Bummer - apologies for that. I'll release a 0.3.1 patch today.
@ciwchris, just so I understand correctly, do you mean you'd expected the path to not change with base_path
when running locally via serve
? Only for the deployment for sites created with build
? My reasoning for using it locally was just to make it super clear that this is how the URLs will look once deployed. I could imagine someone getting confused trying to use the base_path
config locally and thinking it does not work if they don't see the change reflected by the local server.
from doctave.
Thanks, that solves the issue. Although now IIS doesn't like have the .html
file extension missing. 😦
Regarding the base_path
, correct, my preference is not to have to replicate the web server path in the repo. Thinking about it I believe most tools provide the base path as an option to the build. So maybe something like doctave build --release --base-path /my/path
would work. But please do support what you prefer.
from doctave.
@ciwchris I actually really like that suggestion of passing the base path as part of the build step instead of the doctave.yaml
. We could add that as another option in a later release and keep the parameter also in the config file for backwards compatibility.
Did you get IIS to serve the extensionless paths? I'm not familiar with it myself but I'd imagine there's a config you can tweak? Feel free to email me at [email protected] if you need any help.
from doctave.
Related Issues (20)
- Publish the package to `crates.io` HOT 2
- mermaidjs diagram arrows are too dark in dark mode HOT 2
- Using README.md files results in confusing sidebar HOT 2
- Linking to README pages results in broken links HOT 1
- Doctave and Prism CSS rules collide on some grammars
- not found pages
- First headline is not recognized when File encoding is UTF-8-BOM HOT 1
- New configuration option: Display the first headline in navigation menu instead of the Filename? HOT 2
- Error after editing the files newly added HOT 4
- Tell user to point the browser to localhost instead of 0.0.0.0 on Windows HOT 2
- Distorted Format after building the site HOT 1
- Right panel cannot scroll to bottom when TOC is long
- Add a version field in doctave.yaml
- Cargo.lock file is out of sync
- [FEATURE REQUEST] .gitignore but for doctave HOT 1
- Is this project still being developed? HOT 13
- Question - livereload on dev
- Doctave Release - Not working navigation links
- Tags (metadata taxonomy)
- Issues tab displays problems with node_modules READMEs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctave.