Giter VIP home page Giter VIP logo

documentationgenerator.jl's People

Contributors

arunjose1995 avatar cormullion avatar dependabot[bot] avatar juliatagbot avatar mortenpi avatar pfitzseb avatar simondanisch avatar stefankarpinski avatar tanmaykm avatar vdayanand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

documentationgenerator.jl's Issues

Consider not hosting the julia docs

It is, IMO, unfortunate that Julia's docs are hosted at pkg.julialang.org. We should have one canonical place for the base documentation. Could we just build a search-index and link to the official docs instead of also hosting them?

Remember dark mode setting

Would be nice if the dark mode setting is remembered. But may be non-trivial since I assume that needs cookies and state.

Total number of packages and a browsable list

It would be really valuable to have a total number of packages on the landing page for pkg.julialang.org and a directory or some kind of browsable list of all packages linked from the landing page.

Empty docstrings

In the Docstrings section it's not very enlightening to list all functions without docstrings. For example in my Inflate package I have deliberately chosen to have docstrings only for the exported functions. I would suggest removing all functions without docstrings from the Docstrings list.

Also regardless of docstrings there's little point listing the eval and include functions that automatically exist in every module.

Enable a stable URL for a package's documentation

In discourse, Stefan said that the new package system "...removes the burden from package developers of figuring out how to host docs and provide search functionality." I like this; I don't want to host package documentation, and I think it would be valuable to have all the documentation in a single place. One thing that would facilitate this is having a stable per-package URL that package creators can link to from their package github page.

I made the package LLLplus. I updated it recently to v1.2.0, and the new docs are available at https://pkg.julialang.org/docs/LLLplus/zQjW4/1.2.0/ I'd like to be able to link to either https://pkg.julialang.org/docs/LLLplus (or maybe a URL ending in "latest") from a "docs" button on my package page and have that redirect to the latest manual for my package. Unfortunately I can't do that now, because https://pkg.julialang.org/docs/LLLplus gives me a 'Forbidden' error.

Set some environment variables when building docs

Sometimes you need to detect who is building the docs. For example, for Literate.jl I want to predict URLs to the final output. On Travis this is easy; I detect that code is running on Travis, and use TRAVIS_REPO_SLUG to guess a GitHub URL, and similar for embedding links to nbviewer.org for generated notebook files, see e.g. @__REPO__ROOT_URL__ from https://fredrikekre.github.io/Literate.jl/stable/fileformat/#Default-Replacements-1

The problem now is that the docs built by DocumentationGenerator have wrong links, since its not beeing built on Travis, compare e.g. the show nbviewer links here https://fredrikekre.github.io/Literate.jl/stable/generated/example/ and here https://pkg.julialang.org/docs/Literate/XPnWG/1.1.0/generated/example/

I think what I need from DocumentationGenerator is the following:

  • Some way to detect that docs are being built by DocumentationGenerator e.g. DOCUMENTATIONGENERATOR="true"
  • Some environment variable for the final base URL where the docs will be deployed, e.g. DOCUMENTATIONGENERATOR_BASEURL="pkg.julialang.org/docs/Literate/XPnWG/1.1.0/" so that I can query where the docs currently beeing built will be deployed.

CSS broken if you go to a package URL without version part

This is related to #29, in that I was trying to get to the latest URL,
and so tried just deleting the version part.
It would be resolved by just making this a full HTTP redirect.

the CSS is broken if you do not include the version number
See
https://pkg.julialang.org/docs/NamedDims/EBrgX/
vs
https://pkg.julialang.org/docs/NamedDims/EBrgX/0.2.0/
The problem is that stylesheet links to sheets given assets below are relative paths,
those asset folders exist in the version subdirectory

<link href="assets/documenter.css" rel="stylesheet" type="text/css">

so displaying same content from different endpoint breaks them.

Add a link in pkg.julialang.org

If this is where issues should be reported, it would be nice for the webpage to have a link to here so it's easier to find!

ReactionNetworkImporters.jl not showing up

As requested from Slack, I'm just posting that my package, ReactionNetworkImporters.jl, which is in METADATA and the general registry doesn't seem to be showing up at pkg.julialang.org. Note, I have no docs for the package (but do have a README, and just added tags).

Feel free to close if this is redundant with other issues.

URL query parameters for package search

So that you could link to an exact package search (i.e. when searching by name and/or tag). I guess something like https://pkg.julialang.org/docs/?q=foo&tags=bar,baz.

Not sure how useful it would be, but when opening #61, my initial reaction was to just drop a link to the exact query I made.

Combined results for synonyms of tags

It would be great if there was some way of coordinating the redundant tags, for example there is a math and a mathematics tag… maybe the result lists could be combined for words like that.

All it would take is a list of synomyms, so that equivalent words and tags get grouped.

Add project homepage link

Along with the github link for a package, many packages have their own websites. It would be nice to link those. We can pick it up from the project description which has a URL field:

Screen Shot 2019-04-13 at 12 30 56 PM

Filter Docs by Project Manifest

Would be cool if I could supply a project manifest to the filer list so search and package display only considers project relevant packages.

Add link to the package repository

It would be helpful if a link to the repository were available in the package's documentation.

This should probably be implemented in a way that works well with the homepage link (#24).

tests fail in Julia 1.0.3

julia> include("test/runtests.jl")
[ Info: Precompiling DocumentationGenerator [8f0d3306-d70b-5309-b898-24bb6ab47850]
run with timeout: Error During Test at /root/docsgen/test/runtests.jl:8
  Got exception outside of a @test
  MethodError: no method matching rawhandle(::Base.GenericIOBuffer{Array{UInt8,1}})
  Closest candidates are:
    rawhandle(!Matched::RawFD) at process.jl:149
    rawhandle(!Matched::Base.DevNull) at process.jl:148
    rawhandle(!Matched::Base.Filesystem.File) at filesystem.jl:69
    ...
  Stacktrace:
   [1] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}},Base.GenericIOBuffer{Array{UInt8,1}}}) at ./process.jl:345
   [2] (::getfield(Base, Symbol("##493#494")){Cmd})(::Tuple{Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}},Base.GenericIOBuffer{Array{UInt8,1}}}) at ./process.jl:509
   [3] setup_stdio(::getfield(Base, Symbol("##493#494")){Cmd}, ::Tuple{Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}},Base.GenericIOBuffer{Array{UInt8,1}}}) at ./process.jl:490
   [4] #_spawn#492(::Nothing, ::Function, ::Cmd, ::Tuple{Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}},Base.GenericIOBuffer{Array{UInt8,1}}}) at ./process.jl:508
   [5] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Nothing}}, ::typeof(Base._spawn), ::Cmd, ::Tuple{Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}},Base.GenericIOBuffer{Array{UInt8,1}}}) at ./none:0
   [6] #_spawn#489(::Nothing, ::Function, ::Base.CmdRedirect, ::Tuple{Base.DevNull,Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}}}) at ./process.jl:398
   [7] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Nothing}}, ::typeof(Base._spawn), ::Base.CmdRedirect, ::Tuple{Base.DevNull,Base.DevNull,Base.GenericIOBuffer{Array{UInt8,1}}}) at ./none:0
   [8] #_spawn#489(::Nothing, ::Function, ::Base.CmdRedirect, ::Tuple{Base.DevNull,Base.DevNull,Base.DevNull}) at ./process.jl:398
   [9] _spawn at ./process.jl:398 [inlined]
   [10] #run#503(::Bool, ::Function, ::Base.CmdRedirect) at ./process.jl:665
   [11] #run at ./none:0 [inlined]
   [12] #run_with_timeout#3(::Base.TTY, ::Int64, ::String, ::Int64, ::Bool, ::Function, ::Cmd) at /root/docsgen/src/DocumentationGenerator.jl:179
   [13] (::getfield(DocumentationGenerator, Symbol("#kw##run_with_timeout")))(::NamedTuple{(:timeout,),Tuple{Int64}}, ::typeof(DocumentationGenerator.run_with_timeout), ::Cmd) at ./none:0
   [14] macro expansion at /root/docsgen/test/runtests.jl:17 [inlined]
   [15] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
   [16] top-level scope at /root/docsgen/test/runtests.jl:9
   [17] include at ./boot.jl:317 [inlined]
   [18] include_relative(::Module, ::String) at ./loading.jl:1044
   [19] include(::Module, ::String) at ./sysimg.jl:29
   [20] include(::String) at ./client.jl:392
   [21] top-level scope at none:0
   [22] eval(::Module, ::Any) at ./boot.jl:319
   [23] eval_user_input(::Any, ::REPL.REPLBackend) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:85
   [24] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:117 [inlined]
   [25] (::getfield(REPL, Symbol("##28#29")){REPL.REPLBackend})() at ./task.jl:259
Test Summary:    | Error  Total
run with timeout |     1      1
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.

Tag search on Chrome android inserts empty tag

While searching for a tag and clicking a tag, the list of packages updates in the background. When trying to hide the left search column to reveal the found packages, another, empty tag is inserted and the list of found packages becomes empty.

This occurs on Chrome android. Let me know of this proves hard to reproduce and I'll try to upload some screenshots somewhere. It has happened on my phone every time since my first visit at the new site.

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.