Giter VIP home page Giter VIP logo

Comments (14)

alfonsogarciacaro avatar alfonsogarciacaro commented on July 24, 2024 1

Thanks for pointing it out! Hmm, that's weird. Maybe GH started to dislike URLs containing api for some reason? I'll check it out 👍

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

i don't think its a problem with github, i tried loading the api locally and i had the same issue.
Cannot GET /api

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

in tools/generate.fsx if i added buildAPI() at the bottom without the if statement I would be able to render the api homepage

maybe something stopped working with this if statement in the generate.fsx file

printfn "Docs version: %s  Fable version: %s" docVersion gitVersion
if gitVersion <> docVersion then
  buildAPI()
  WriteStringToFile false docVersionFile gitVersion
else
  printfn "Skipping generate API docs since it is already up-to-date."

I am still not able to access /api/Fable.Core, do i need to run another command to generate the api references?

from fable-compiler.github.io.

alfonsogarciacaro avatar alfonsogarciacaro commented on July 24, 2024

Hmm, I think it was @zaaack who wrote that part the script. Would it be possible to have a look into it?

from fable-compiler.github.io.

zaaack avatar zaaack commented on July 24, 2024

@alfonsogarciacaro I built locally and the API references generated as expected in ./public/api, but not sure where is the hosted content.

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

i just updated all local paket dependencies and did all the renaming the files to be coherent with the new functions and the api page also build just as expected.

the only page still not able to be loaded is /api/Fable.Core

from fable-compiler.github.io.

zaaack avatar zaaack commented on July 24, 2024

@spaceywolfi Can you find ./public/api in fable-compiler.github.io/?

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

@zaaack yes the folder exists and inside i have the index.html file
the api site works now (locally), except when i click the link Fable.Core in the api site

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

@zaaack to update the published website i think you just need to run node_modules/gh-pages/bin/gh-pages -d public -b master

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

at least i tried this and i got a build api site

master...spaceywolfi:master

from fable-compiler.github.io.

zaaack avatar zaaack commented on July 24, 2024

@spaceywolfi Did you build Fable repo in the same directory of this repo? The generate script requires Fable.Core binary to generate the API references.

from fable-compiler.github.io.

waozi-dev avatar waozi-dev commented on July 24, 2024

@zaaack i see, maybe that was the problem then! thanks!

from fable-compiler.github.io.

alfonsogarciacaro avatar alfonsogarciacaro commented on July 24, 2024

Ok, it seems that last time I updated the website I did a fresh clone of this repo and forgot to build the API so it got removed from GH pages 🤦‍♂️

@zaaack What do I need to do to build the API references? I'm getting the following error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type of field 'FSharp.CodeFormat.CodeFormatAgent:languageService' (0) due to: Could not load file or assembly 'FSharpVSPowerTools.Core, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. assembly:FSharpVSPowerTools.Core, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null type:<unknown type> member:<none>
  at <StartupCode$FSharp-MetadataFormat>[email protected] (System.Tuple`2[T1,T2] _arg2) [0x000a0] in <579f5c4b2a458525a74503834b5c9f57>:0

from fable-compiler.github.io.

alfonsogarciacaro avatar alfonsogarciacaro commented on July 24, 2024

I've temporarily disabled the API part as I couldn't fix the script to build it :/

from fable-compiler.github.io.

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.