insert dev in url of development version doc

This commit is contained in:
Trevor Spiteri 2020-04-18 16:01:15 +02:00
parent aab8d47d8d
commit b3a16a967a
2 changed files with 58 additions and 11 deletions

View File

@ -110,9 +110,11 @@ pages:
- cargo/
script:
- rustup toolchain install --profile minimal nightly-$TARGET
- rm -rf public
- mkdir public
- cp doc/index.html public
- cargo +nightly-$TARGET doc --no-deps --features "az f16 serde std"
- cp doc/index.html target/doc
- mv target/doc public
- mv target/doc public/dev
artifacts:
paths:
- public

View File

@ -1,9 +1,54 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `fixed` crate."><meta name="keywords" content="rust, rustlang, rust-lang, fixed"><title>fixed - Rust</title><link rel="stylesheet" type="text/css" href="normalize.css"><link rel="stylesheet" type="text/css" href="rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="dark.css"><link rel="stylesheet" type="text/css" href="light.css" id="themeStyle"><script src="storage.js"></script><noscript><link rel="stylesheet" href="noscript.css"></noscript><link rel="shortcut icon" href="favicon.ico"><style type="text/css">#crate-search{background-image:url("down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='index.html'><div class='logo-container'><img src='rust-logo.png' alt='logo'></div></a><p class='location'>Crate fixed</p></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="theme.js"></script><!--<nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><a id="settings-menu" href="settings.html"><img src="wheel.svg" width="18" alt="Change settings"></a></div></form></nav>--><section id="main" class="content"><div class='docblock'><h1 id="fixed-point-numbers" class="section-header"><a href="#fixed-point-numbers">Fixed-point numbers</a></h1>
<p>The <a href="https://crates.io/crates/fixed"><em>fixed</em> crate</a> provides fixed-point numbers. Here you can find the documentation for the <a href="https://gitlab.com/tspiteri/fixed">current development version</a> of the crate.</p>
<h2>Documentation</h2>
<ul>
<li><a href="fixed/index.html">Documentation for the current development version.</a></li>
<li><a href="https://docs.rs/fixed">Documentation for the published versions.</a></li>
</ul>
</div>
</section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "";window.currentCrate = "fixed";</script><!--<script src="aliases.js"></script><script src="main.js"></script><script defer src="search-index.js"></script>--></body></html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `fixed` crate.">
<meta name="keywords" content="rust, rustlang, rust-lang, fixed">
<title>fixed - Rust</title>
<link rel="stylesheet" type="text/css" href="dev/normalize.css">
<link rel="stylesheet" type="text/css" href="dev/rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="dev/dark.css">
<link rel="stylesheet" type="text/css" href="dev/light.css" id="themeStyle">
<script src="dev/storage.js"></script>
<noscript><link rel="stylesheet" href="dev/noscript.css"></noscript>
<link rel="shortcut icon" href="dev/favicon.ico">
<style type="text/css">
#crate-search{background-image:url("down-arrow.svg");}
</style>
</head>
<body class="rustdoc mod">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<a href="index.html"><div class="logo-container"><img src="dev/rust-logo.png" alt="logo"></div></a>
<p class="location">Crate fixed</p>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="dev/brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="dev/theme.js"></script>
<section id="main" class="content">
<div class="docblock">
<h1 id="fixed-point-numbers" class="section-header"><a href="#fixed-point-numbers">Fixed-point numbers</a></h1>
<p>The <a href="https://crates.io/crates/fixed"><em>fixed</em> crate</a> provides fixed-point numbers. Here you can find the documentation for the <a href="https://gitlab.com/tspiteri/fixed">current development version</a> of the crate.</p>
<h2>Documentation</h2>
<ul>
<li><a href="dev/fixed">Documentation for the current development version.</a></li>
<li><a href="https://docs.rs/fixed">Documentation for the published versions.</a></li>
</ul>
</div>
</section>
<section id="search" class="content hidden"></section>
<section class="footer"></section>
<script>window.rootPath = "";window.currentCrate = "fixed";</script>
</body>
</html>