mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Lint updates csharp docs (#12962)
* fix lint issues on docfx.vendor.js file * fix ci * remove submodule * fix ci * Update var name to AcceptedList * remove test branch from ci
This commit is contained in:
parent
bc2df1bf95
commit
5099dda42f
3 changed files with 7 additions and 7 deletions
2
.github/workflows/publish-csharp-apidocs.yml
vendored
2
.github/workflows/publish-csharp-apidocs.yml
vendored
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
clean: false
|
||||
- name: Move API docs into target area
|
||||
run: |
|
||||
if (Test-Path -Path docs/api/csharp) {rmdir docs/api/csharp /q /s}
|
||||
if (Test-Path -Path docs/api/csharp) {rm -r -fo docs/api/csharp}
|
||||
MOVE csharp/ApiDocs/csharp docs/api
|
||||
rm -r -fo csharp/ApiDocs
|
||||
rm -r -fo csharp/src
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -2012,7 +2012,7 @@ lunr.Index.load = function (serializedIndex) {
|
|||
* @property {number} _b - A parameter to control field length normalization, setting this to 0 disabled normalization, 1 fully normalizes field lengths, the default value is 0.75.
|
||||
* @property {number} _k1 - A parameter to control how quickly an increase in term frequency results in term frequency saturation, the default value is 1.2.
|
||||
* @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.
|
||||
* @property {array} metadataWhitelist - A list of metadata keys that have been whitelisted for entry in the index.
|
||||
* @property {array} metadataAcceptedlist - A list of metadata keys that have been listed for entry in the index.
|
||||
*/
|
||||
lunr.Builder = function () {
|
||||
this._ref = "id"
|
||||
|
|
@ -2027,7 +2027,7 @@ lunr.Builder = function () {
|
|||
this._b = 0.75
|
||||
this._k1 = 1.2
|
||||
this.termIndex = 0
|
||||
this.metadataWhitelist = []
|
||||
this.metadataAcceptedlist = []
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -2149,10 +2149,10 @@ lunr.Builder.prototype.add = function (doc) {
|
|||
this.invertedIndex[term][fieldName][docRef] = Object.create(null)
|
||||
}
|
||||
|
||||
// store all whitelisted metadata about this token in the
|
||||
// store all metadata about this token in the
|
||||
// inverted index
|
||||
for (var l = 0; l < this.metadataWhitelist.length; l++) {
|
||||
var metadataKey = this.metadataWhitelist[l],
|
||||
for (var l = 0; l < this.metadataAcceptedlist.length; l++) {
|
||||
var metadataKey = this.metadataAcceptedlist[l],
|
||||
metadata = term.metadata[metadataKey]
|
||||
|
||||
if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue