I made a Julia package LowLevelFEM and tried to make documentation for it. I used docstings in src file. docs/build/index.html
was generated with Documenter
julia package and @audodocs
macro inside index.md
. Now I want to publish the html documentation somewhere. It is not clear where: https://perebalazs.github.io/LowLevelFEM.jl/ or https://docs.juliahub.com/General/LowLevelFEM/stable/ . Each of them is exists, but the former does not contain the docstrings from the source file, the latter is empty. After two days of trying I copied the make.jl
and ci.yml
files from other packages where doc pages were similar which I wanted. (e.g. https://github.com/JuliaHEP/UnROOT.jl/blob/main/.github/workflows/ci.yml , https://github.com/NumSoftware/Amaru.jl/blob/main/docs/make.jl ).
I don’t understand why I can’t see the docs/build/index.html
file on one of the sites (github or juliahub)? What have I done wrong?
mkitti
February 25, 2024, 12:08am
2
Did you configure Github pages to point to the gh-pages branch?
The page does seem to be present.
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Introduction · LowLevelFEM</title><meta name="title" content="Introduction · LowLevelFEM"/><meta property="og:title" content="Introduction · LowLevelFEM"/><meta property="twitter:title" content="Introduction · LowLevelFEM"/><meta name="description" content="Documentation for LowLevelFEM."/><meta property="og:description" content="Documentation for LowLevelFEM."/><meta property="twitter:description" content="Documentation for LowLevelFEM."/><script data-outdated-warner src="assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="assets/documenter.js"></script><script src="search_index.js"></script><script src="siteinfo.js"></script><script src="../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href>LowLevelFEM</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li class="is-active"><a class="tocitem" href>Introduction</a><ul class="internal"><li><a class="tocitem" href="#Functions"><span>Functions</span></a></li><li><a class="tocitem" href="#Index"><span>Index</span></a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Introduction</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Introduction</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/perebalazs/LowLevelFEM.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/perebalazs/LowLevelFEM.jl/blob/main/docs/src/index.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="LowLevelFEM.jl"><a class="docs-heading-anchor" href="#LowLevelFEM.jl">LowLevelFEM.jl</a><a id="LowLevelFEM.jl-1"></a><a class="docs-heading-anchor-permalink" href="#LowLevelFEM.jl" title="Permalink"></a></h1><p>Documentation for LowLevelFEM.jl</p><ul><li><a href="#LowLevelFEM.jl">LowLevelFEM.jl</a></li><li class="no-marker"><ul><li><a href="#Functions">Functions</a></li><li><a href="#Index">Index</a></li></ul></li></ul><h2 id="Functions"><a class="docs-heading-anchor" href="#Functions">Functions</a><a id="Functions-1"></a><a class="docs-heading-anchor-permalink" href="#Functions" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="LowLevelFEM.Problem" href="#LowLevelFEM.Problem"><code>LowLevelFEM.Problem</code></a> — <span class="docstring-category">Type</span></header><section>
This file has been truncated. show original
1 Like
Did you configure Github pages to point to the gh-pages branch?
Thanks, that was missing.
Another tutorial that includes the documentation part: 11 - Developing Julia packages - Julia language: a concise tutorial
You host your documentation on github and then either on juliahub they make “another copy” of it, or you direcly instruct juliahub on where is your package documentation on github .
1 Like