Skip to content

Commit

Permalink
V2.1 merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mikernet committed Dec 30, 2022
1 parent 1205112 commit 79cf351
Show file tree
Hide file tree
Showing 46 changed files with 1,188 additions and 1,781 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.101
- name: Install dependencies
run: dotnet restore
working-directory: Source
Expand All @@ -45,6 +49,10 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.101
- name: Install dependencies
run: dotnet restore
working-directory: Source
Expand Down
11 changes: 10 additions & 1 deletion Docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@
}
],
"build": {
"template": ["default", "templates/unity"],
"globalMetadata": {
"_appTitle": "Singulink.Numerics.BigIntegerExtensions",
"_appName": "BigInteger Extensions",
"_appLogoPath": "images/logo.png",
"_appFaviconPath": "images/favicon.png",
"_copyrightFooter": "© Singulink. All rights reserved.",
"_enableSearch": true,
"_enableNewTab": true
},
"template": ["default", "templates/singulinkfx", "plugins/memberpage.2.59.4", "plugins/memberpage-extras"],
"xrefService": [ "https://xref.docs.microsoft.com/query?uid={uid}" ],
"content": [
{
Expand Down
16 changes: 14 additions & 2 deletions Docs/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
<div class="article">

# Singulink.Numerics.BigIntegerExtensions

## Overview

**BigIntegerExtensions** provides some helper `BigInteger` extension methods and a super fast power cache that serves as a replacement for `BigInteger.Pow()` for bases between 3 and 10 (inclusive) to quickly get cached values instead of calculating them each time they are needed. This library is used by [Singulink.Numerics.BigDecimal](https://www.singulink.com/Docs/Singulink.Numerics.BigDecimal/) to improve performance and support its operations.

**Singulink.Numerics.BigIntegerExtensions** is part of the **Singulink Libraries** collection. Visit https://github.com/Singulink/ to see the full list of libraries available.

## Features

- `BigIntegerPowCache` for cached lookups of powers.
- `CountDigits()` and `CountDigitsAndTrailingZeros()` extension methods using highly optimized algorithms.
- `Divide()` extension method that supports a wide range of rounding modes instead of just truncating the result like the standard division operator.

## Information and Links

Here are some additonal links to get you started:

- [API Documentation](api/index.md) - Browse the fully documented API here.
- [Chat on Gitter](https://gitter.im/Singulink/community) - Have questions or want to discuss the library? This is the place for all Singulink project discussions.
- [Github Repo](https://github.com/Singulink/Singulink.Numerics.BigIntegerExtensions) - File issues, contribute pull requests or check out the code for yourself!
- [Chat on Discord](https://discord.gg/EkQhJFsBu6) - Have questions or want to discuss the library? This is the place for all Singulink project discussions.
- [Github Repo](https://github.com/Singulink/Singulink.Numerics.BigIntegerExtensions) - File issues, contribute pull requests or check out the code for yourself!

</div>
7 changes: 0 additions & 7 deletions Docs/templates/custom/fixes.css

This file was deleted.

19 changes: 0 additions & 19 deletions Docs/templates/custom/fixes.js

This file was deleted.

4 changes: 0 additions & 4 deletions Docs/templates/discordfx/partials/footer.tmpl.partial

This file was deleted.

13 changes: 0 additions & 13 deletions Docs/templates/discordfx/partials/navbar.tmpl.partial

This file was deleted.

17 changes: 0 additions & 17 deletions Docs/templates/discordfx/styles/fixes.js

This file was deleted.

20 changes: 0 additions & 20 deletions Docs/templates/discordfx/styles/main.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,62 +7,56 @@
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>

{{>partials/head}}
{{>partials/head}}

<body>
<body>
<div class="top-navbar">

<a href="javascript:void(0);" class="burger-icon" onclick="toggleMenu()">
<a class="burger-icon" onclick="toggleMenu()">
<svg name="Hamburger"
style="vertical-align: middle;"
width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
width="34" height="34" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
</a>

{{>partials/logo}}

</div>

<div class="body-content">

<div id="blackout" class="blackout" onclick="toggleMenu()"></div>

<nav id="sidebar" role="navigation" >

<nav id="sidebar" role="navigation">
<div class="sidebar">

{{>partials/navbar}}

<div class="sidebar-item-separator"></div>

{{^_disableToc}}
{{>partials/toc}}
{{/_disableToc}}

</div>

{{>partials/footer}}

</nav>

<main class="main-panel">
{{#_enableSearch}}
{{>partials/searchResults}}
{{/_enableSearch}}

<div role="main" class="hide-when-search" >

{{^_disableBreadcrumb}}
{{>partials/breadcrumb}}
{{/_disableBreadcrumb}}

<article class="content wrap" id="_content" data-uid="{{uid}}">
{{!body}}
</article>

</div>

{{#_copyrightFooter}}
<div class="copyright-footer">
<span>{{_copyrightFooter}}</span>
</div>
{{/_copyrightFooter}}
</main>
</div>

{{>partials/scripts}}

</body>

</html>
4 changes: 4 additions & 0 deletions Docs/templates/singulinkfx/partials/footer.tmpl.partial
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="footer">
{{{_appFooter}}}
{{^_appFooter}}<strong><a href='https://dotnet.github.io/docfx/'>DocFX</a> + <a href='https://www.singulink.com'>Singulink</a> = ♥</strong>{{/_appFooter}}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
<link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/night-owl.min.css">
<link rel="stylesheet" href="{{_rel}}styles/colors.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
<link rel="stylesheet" href="{{_rel}}styles/config.css">
<link rel="stylesheet" href="{{_rel}}styles/discord.css">
<link rel="stylesheet" href="{{_rel}}styles/singulink.css">
<link rel="stylesheet" href="{{_rel}}styles/main.css">
<meta property="docfx:navrel" content="{{_navRel}}">
<meta property="docfx:tocrel" content="{{_tocRel}}">
{{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
{{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
</head>
</head>
13 changes: 13 additions & 0 deletions Docs/templates/singulinkfx/partials/namespace.tmpl.partial
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}

<h1 id="{{id}}" data-uid="{{uid}}" class="text-break">{{>partials/title}}</h1>
<div class="markdown level0 summary">{{{summary}}}</div>
<div class="markdown level0 conceptual">{{{conceptual}}}</div>
<div class="markdown level0 remarks">{{{remarks}}}</div>
{{#children}}
<h3 id="{{id}}">{{>partials/namespaceSubtitle}}</h3>
{{#children}}
<h5><xref uid="{{uid}}" altProperty="fullName" displayProperty="name"/></h5>
<section>{{{summary}}}</section>
{{/children}}
{{/children}}
19 changes: 19 additions & 0 deletions Docs/templates/singulinkfx/partials/navbar.tmpl.partial
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}

<div>
<div class="mobile-hide">
{{>partials/logo}}
</div>

{{#_enableSearch}}
<div class="sidesearch">
<form id="search" role="search" class="search">
<i class="bi bi-search search-icon"></i>
<input type="text" id="search-query" placeholder="{{__global.search}}" autocomplete="off">
</form>
</div>
{{/_enableSearch}}

<div id="navbar">
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<script type="text/javascript" src="{{_rel}}styles/url.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
<script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
<script type="text/javascript" src="{{_rel}}styles/fixes.js"></script>
<script type="text/javascript" src="{{_rel}}styles/singulink.js"></script>
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}

<div id="search-results" style="display: none;">
<h1 class="search-list">{{__global.searchResults}} <span></span></h1>
<div class="sr-items">
<p><i class="bi bi-hourglass-split index-loading"></i></p>
</div>
<ul id="pagination" data-first={{__global.pageFirst}} data-prev={{__global.pagePrev}} data-next={{__global.pageNext}} data-last={{__global.pageLast}}></ul>
</div>
Loading

0 comments on commit 79cf351

Please sign in to comment.