Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log4brains build broken on node 14.21.3 #106

Open
Tenshock opened this issue Apr 27, 2023 · 3 comments
Open

log4brains build broken on node 14.21.3 #106

Tenshock opened this issue Apr 27, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Tenshock
Copy link

Tenshock commented Apr 27, 2023

Bug Report

Description

the output generated by log4brains build is broken

Steps to Reproduce

  1. Install node lts/fermium v14.21.3
  2. install log4brains:latest: npm install -g log4brains
  3. initiate a log4brains project: log4brains init
  4. build a deployable static website: log4brains build
  5. launch the index.html at .log4brains/out
    6: See how the navigation, search and images are broken

Expected Behavior

The static website should work

Context

I can't deploy to gitlab pages or whatever using the procedure explained in the README.md

Environment

  • Log4brains version: 1.0.1
  • Node.js version: 14.21.3
  • OS and its version: Ubuntu 20 on WSL
  • Browser information: Microsoft Edge
@Tenshock Tenshock added the bug Something isn't working label Apr 27, 2023
@theyd
Copy link

theyd commented Jul 18, 2023

I have got the same issue with node v18.16.1
I'm running node with an environment variable: NODE_OPTION=--openssl-legacy-provider

The "Decision Log" navigation bar on the left seems empty and also the "ADR Workflow" image wouldn't be loaded.

@jasonholmberg
Copy link

I was able to get this to work by changing the last two steps in the documented GH pages workflow to:

      - name: Install and Build Log4brains
        run: |
          npm install -g log4brains
          log4brains build
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@v4
        with:
          branch: gh-pages
          folder: .log4brains/out
          clean: true

It seems like anything other that the default buildPath break any resource links when deployed to GH Pages.

@theyd
Copy link

theyd commented Jul 25, 2023

At first step, i don't want to deploy the pages to Github etc.

When i run log4brains build, the page index.html seems not working correctly. The Logo in the Header is missing and the links on the left navigationbar are invisible. When i search for the links in the HTML file, they exist but maybe the css does hide the links. In addition i find the link to the logo in the HTML file: /l4b-static/Log4brains-logo-dark.png. When i edit the link and remove the first slash, the logo will be shown.

running log4brains preview is working fine.

Im running log4brains under Windows.

log4brains

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants