Comments (14)
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.
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.
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.
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.
@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.
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.
@spaceywolfi Can you find ./public/api
in fable-compiler.github.io/
?
from fable-compiler.github.io.
@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.
@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.
at least i tried this and i got a build api site
from fable-compiler.github.io.
@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.
@zaaack i see, maybe that was the problem then! thanks!
from fable-compiler.github.io.
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.
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)
- Built with Fable HOT 2
- Move Libraries outside of Resources page HOT 1
- Website link to bulma-timepicker is broken (https://fable.io/resources.html) HOT 1
- Feature matrix for languages HOT 5
- Incorrect information about limitation for React Fast Refresh on "Elmish Components with Elmish 4 and UseElmish" HOT 1
- Write Dart related pages
- Write Rust 'Build and run' page
- Write Rust 'Features' page
- Write Python 'Compatibility' page
- Rework JavaScript 'Compatibility' page
- Write Rust 'Compatibility' page
- Typescript features documentations ends abruptly with un-styled, uncommented code. HOT 1
- Rework the index page now that Fable 4 supports multiple languages
- Document how to interop with JavaScript code/libraries HOT 4
- Security alerts HOT 3
- Documents `NamedParams` attributes for Python
- Document `Emit` attributes with option `with_labels` for Python
- Python getting started documentation is not clear HOT 1
- Blogpost Siren - Using Fable to create libraries for multiple languages HOT 4
- Add documentation on using a discriminated union to generate a POJO
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fable-compiler.github.io.