Git Product home page Git Product logo

Comments (9)

begleynk avatar begleynk commented on May 27, 2024 1

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.

ales-tsurko avatar ales-tsurko commented on May 27, 2024 1

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.

begleynk avatar begleynk commented on May 27, 2024 1

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.

ales-tsurko avatar ales-tsurko commented on May 27, 2024

Ah ok. Thanks! Will wait then.

from doctave.

begleynk avatar begleynk commented on May 27, 2024

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.

ciwchris avatar ciwchris commented on May 27, 2024

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.

begleynk avatar begleynk commented on May 27, 2024

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.

ciwchris avatar ciwchris commented on May 27, 2024

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.

begleynk avatar begleynk commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.