Giter Club home page Giter Club logo

liaison's People

Contributors

grtcdr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

liaison's Issues

Branch name missing from sourcehut urls

Hi Aziz! Nice work!! The manual website looks slick, and I like the package name change.

I just updated from an old commit to the latest main branch, and I noticed that urls which liaison generates for my sourcehut repo are missing the branch name.

For example, I'm getting
https://git.sr.ht/~breatheoutbreathein/ushin.org/log//item/build-site.el
when I expect
https://git.sr.ht/~breatheoutbreathein/ushin.org/log/master/item/build-site.el

Thank for this project!

Side effects of constructing the URL of document within a submodule

URL builders internal to the library (forgecast--build-*-url) will return a broken link if the document they're being called in lives inside of a git submodule.

This is because submodules by default are in a detached HEAD state (as they check out specific commits of a specific branch), this in turn causes forgecast--get-current-branch to return a string in the form of (HEAD <commit-id>) instead of a specific branch e.g. main.

Although there have been numerous attempts to address this side effect, none have worked so far, namely:

  • Pulling and merging the submodule in question with git submodule update --remote --merge as a first step of building the website at the build system level.
  • Explicitly checking out the main branch of the submodule in question at the build system level.

We can't work around this issue by hardcoding a default branch, because the name of a repository's default branch can vary.

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.