Giter Site home page Giter Site logo

Comments (7)

loreanvictor avatar loreanvictor commented on June 1, 2024 1

The problem appears to be due to this issue. @oxr463 could you please also comment the contents of .codedoc/config.ts here?

from codedoc.

loreanvictor avatar loreanvictor commented on June 1, 2024 1

@oxr463 perhaps setting the project namespace resolves the issue? to the best of my (limited) understanding, you should set it to the repo name:

import { configuration } from '@codedoc/core';

import { theme } from './theme';


export const config = /*#__PURE__*/configuration({
  theme,                                  // --> add the theme. modify `./theme.ts` for changing the theme.
  dest: {
    namespace: '<repo-name>',
  },  
  page: {
    favicon: '/favicon.png',
    title: {
      base: 'Foo'               // --> the base title of your doc pages
    }
  }
});

from codedoc.

loreanvictor avatar loreanvictor commented on June 1, 2024

@oxr463 I am unable to open https://foo.gitlab.io. Could you provide a live link? Or steps for reproduction (how did you deploy to GitLab pages)?

P.S. I am unaware of how Gitlab pages work so I am not sure if there are multiple ways of deploying, a single recommended method, etc., thats why I'm asking.

from codedoc.

oxr463 avatar oxr463 commented on June 1, 2024

Here is my GitLab CI/CD pipeline:

include:
  - template: Dependency-Scanning.gitlab-ci.yml

image: node:latest

pages:
  before_script:
    - npm i -g @codedoc/cli
    - npx codedoc install
  script:
    - npx codedoc build
    - mkdir public
    - cp -R docs public/
    - cp favicon.png public/
    - cp index.html public/
  artifacts:
    paths:
      - public
  only:
    - master

from codedoc.

oxr463 avatar oxr463 commented on June 1, 2024

IMG_20210303_185958

This is docs/assets:

IMG_20210303_190229

from codedoc.

oxr463 avatar oxr463 commented on June 1, 2024

The problem appears to be due to this issue. @oxr463 could you please also comment the contents of .codedoc/config.ts here?

import { configuration } from '@codedoc/core';

import { theme } from './theme';


export const config = /*#__PURE__*/configuration({
  theme,                                  // --> add the theme. modify `./theme.ts` for changing the theme.
  
  page: {
    favicon: '/favicon.png',
    title: {
      base: 'Foo'               // --> the base title of your doc pages
    }
  },
  
});

from codedoc.

oxr463 avatar oxr463 commented on June 1, 2024

That fixed it:

  dest: {
    namespace: '/foo'
  },

from codedoc.

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.