You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/10/23 13:58:04 UTC

[lucenenet] branch master updated (1fcc714 -> d633dc6)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git.


    from 1fcc714  websites/site/lucenetemplate/partials: Moved forkongithub span to navbar.tmpl.partial to produce valid HTML
     new 4bdae18  website: Converted to use master page instead of header template for Fork me on GitHub
     new 1596873  website: Updated code samples to include using blocks and made path xplat
     new cfd06b0  website: Updated code padding to prevent wrapping
     new 8b9afae  website: Added fix for padding disappearing on gradient in the middle two viewport sizes
     new 4a5393d  website: Fixed nuget-well so it doesn't wrap
     new 0fa692b  website: Updated Powershell script to allow passing in the staging port
     new 0bdae67  website: added Google ads
     new d633dc6  apidocs: Updated Powershell script to allow passing in the staging port

The 8 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 websites/apidocs/docs.ps1                          |  6 ++--
 websites/site/docfx.json                           |  3 +-
 websites/site/lucenetemplate/ads.txt               |  1 +
 websites/site/lucenetemplate/index.html.tmpl       |  2 +-
 .../lucenetemplate}/layout/_master.tmpl            |  1 +
 .../partials/head-content.tmpl.partial             |  1 +
 .../site/lucenetemplate/partials/head.tmpl.partial |  1 +
 .../partials/home-quick-start.tmpl.partial         | 37 +++++++++++++---------
 .../lucenetemplate/partials/navbar.tmpl.partial    |  1 -
 websites/site/lucenetemplate/styles/site.css       | 22 ++++++++++++-
 websites/site/site.ps1                             |  7 ++--
 11 files changed, 59 insertions(+), 23 deletions(-)
 create mode 100644 websites/site/lucenetemplate/ads.txt
 copy websites/{apidocs/Templates/DefaultTemplateNoAssets => site/lucenetemplate}/layout/_master.tmpl (94%)


[lucenenet] 05/08: website: Fixed nuget-well so it doesn't wrap

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 4a5393d54ae8396a9716990fb78dc9bf831237c0
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 18:10:09 2020 +0700

    website: Fixed nuget-well so it doesn't wrap
---
 websites/site/lucenetemplate/index.html.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/websites/site/lucenetemplate/index.html.tmpl b/websites/site/lucenetemplate/index.html.tmpl
index 0c3092f..954f3d8 100644
--- a/websites/site/lucenetemplate/index.html.tmpl
+++ b/websites/site/lucenetemplate/index.html.tmpl
@@ -17,7 +17,7 @@
         <div class="container">
           <p class="text-center">Lucene.Net is a high performance search engine library for .NET</p>
           <div class="row">
-              <div class="nuget-well col-xs-8 col-xs-offset-2 col-sm-6 col-sm-offset-3">
+              <div class="nuget-well col-xs-8 col-xs-offset-2 col-lg-6 col-lg-offset-3">
                   Install-Package Lucene.Net -Pre
               </div>
           </div>


[lucenenet] 03/08: website: Updated code padding to prevent wrapping

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit cfd06b0240c48a9af38e7a1bc7dc1b2708706c79
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 16:12:26 2020 +0700

    website: Updated code padding to prevent wrapping
---
 websites/site/lucenetemplate/styles/site.css | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/websites/site/lucenetemplate/styles/site.css b/websites/site/lucenetemplate/styles/site.css
index 709c269..78f4891 100644
--- a/websites/site/lucenetemplate/styles/site.css
+++ b/websites/site/lucenetemplate/styles/site.css
@@ -66,7 +66,7 @@ pre.clean {
   background-color: #f8f8f8;
   overflow: auto;
   display: block;
-  padding: 9.5px;
+  padding: 5px;
   margin: 0 0 10px;
   font-size: 13px;
   line-height: 1.42857143;
@@ -75,6 +75,12 @@ pre.clean {
   word-wrap: break-word;
 }
 
+@media screen and (max-width: 1200px) {
+  pre.clean {
+	padding: 9.5px;
+  }
+}
+
 #intro {
   margin-top: 80px;
   /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#2c5fa3+0,4096ee+100 */


[lucenenet] 02/08: website: Updated code samples to include using blocks and made path xplat

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 15968734e9e5482e754397cfd2263bd3878e9681
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 16:11:10 2020 +0700

    website: Updated code samples to include using blocks and made path xplat
---
 .../partials/home-quick-start.tmpl.partial         | 37 +++++++++++++---------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index 4819950..adc85fd 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -1,25 +1,30 @@
 <section id="quick-start" class="home-section">
 <div class="container">
 <div class="row">
-<div class="col-xs-12 col-md-6">
+<div class="col-xs-12 col-lg-6">
 <p class="text-center">Create an index and define a text analyzer</p>
 <pre class="clean">
-<code class="csharp">// Ensures index backwards compatibility
-var AppLuceneVersion = LuceneVersion.LUCENE_48;
+<code class="csharp">
+// Ensures index backwards compatibility
+const LuceneVersion AppLuceneVersion = LuceneVersion.LUCENE_48;
 
-var indexLocation = @"C:\Index";
-var dir = FSDirectory.Open(indexLocation);
+// Construct a machine-independent path for the index
+var personalFolder = Environment.SpecialFolder.Personal;
+var basePath = Environment.GetFolderPath(personalFolder);
+var indexPath = Path.Combine(basePath, "index");
 
-//create an analyzer to process the text
+using var dir = FSDirectory.Open(indexPath);
+
+// Create an analyzer to process the text
 var analyzer = new StandardAnalyzer(AppLuceneVersion);
 
-//create an index writer
+// Create an index writer
 var indexConfig = new IndexWriterConfig(AppLuceneVersion, analyzer);
-var writer = new IndexWriter(dir, indexConfig);
+using var writer = new IndexWriter(dir, indexConfig);
 </code>
 </pre>
 </div>
-<div class="col-xs-12 col-md-6">
+<div class="col-xs-12 col-lg-6">
 <p class="text-center">Add to the index</p>
 <pre class="clean">
 <code class="csharp">var source = new
@@ -27,7 +32,7 @@ var writer = new IndexWriter(dir, indexConfig);
     Name = "Kermit the Frog",
     FavoritePhrase = "The quick brown fox jumps over the lazy dog"
 };
-Document doc = new Document
+var doc = new Document
 {
     // StringField indexes but doesn't tokenize
     new StringField("name", 
@@ -41,13 +46,14 @@ Document doc = new Document
 writer.AddDocument(doc);
 writer.Flush(triggerMerge: false, applyAllDeletes: false);
 </code>
+</pre>
 </div>
 </div>
 <div class="row">
-<div class="col-xs-12 col-md-6">
+<div class="col-xs-12 col-lg-6">
 <p class="text-center">Construct a query</p>
 <pre class="clean">
-<code class="csharp">// search with a phrase
+<code class="csharp">// Search with a phrase
 var phrase = new MultiPhraseQuery
 {
     new Term("favoritePhrase", "brown"),
@@ -56,11 +62,12 @@ var phrase = new MultiPhraseQuery
 </code>
 </pre>
 </div>                    
-<div class="col-xs-12 col-md-6">
+<div class="col-xs-12 col-lg-6">
 <p class="text-center">Fetch the results</p>
 <pre class="clean">
-<code class="csharp">// re-use the writer to get real-time updates
-var searcher = new IndexSearcher(writer.GetReader(applyAllDeletes: true));
+<code class="csharp">// Re-use the writer to get real-time updates
+using var reader = writer.GetReader(applyAllDeletes: true);
+var searcher = new IndexSearcher(reader);
 var hits = searcher.Search(phrase, 20 /* top 20 */).ScoreDocs;
 foreach (var hit in hits)
 {


[lucenenet] 01/08: website: Converted to use master page instead of header template for Fork me on GitHub

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 4bdae18f82f377e06c214d08cdda363ba6bea112
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 20:24:27 2020 +0700

    website: Converted to use master page instead of header template for Fork me on GitHub
---
 websites/site/lucenetemplate/layout/_master.tmpl   | 56 ++++++++++++++++++++++
 .../lucenetemplate/partials/navbar.tmpl.partial    |  1 -
 2 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/websites/site/lucenetemplate/layout/_master.tmpl b/websites/site/lucenetemplate/layout/_master.tmpl
new file mode 100644
index 0000000..b244170
--- /dev/null
+++ b/websites/site/lucenetemplate/layout/_master.tmpl
@@ -0,0 +1,56 @@
+{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
+{{!include(/^styles/.*/)}}
+{{!include(/^fonts/.*/)}}
+{{!include(favicon.ico)}}
+{{!include(logo.svg)}}
+{{!include(search-stopwords.json)}}
+<!DOCTYPE html>
+<!--[if IE]><![endif]-->
+<html>
+  {{>partials/head}}
+  <body data-spy="scroll" data-target="#affix" data-offset="120">
+    <span id="forkongithub"><a href="https://github.com/apache/lucenenet">Fork me on GitHub</a></span>
+    <div id="wrapper">
+      <header>
+        {{^_disableNavbar}}
+        {{>partials/navbar}}
+        {{/_disableNavbar}}
+        {{^_disableBreadcrumb}}
+        {{>partials/breadcrumb}}
+        {{/_disableBreadcrumb}}
+      </header>
+      {{#_enableSearch}}
+      <div class="container body-content">
+        {{>partials/searchResults}}
+      </div>
+      {{/_enableSearch}}
+      <div role="main" class="container body-content hide-when-search">
+      {{^_disableToc}}
+        {{>partials/toc}}
+        <div class="article row grid-right">
+      {{/_disableToc}}
+      {{#_disableToc}}
+        <div class="article row grid">
+        {{/_disableToc}}
+          {{#_disableAffix}}
+          <div class="col-md-12">
+          {{/_disableAffix}}
+          {{^_disableAffix}}
+          <div class="col-md-10">
+          {{/_disableAffix}}
+            <article class="content wrap" id="_content" data-uid="{{uid}}">
+                {{!body}}
+            </article>
+          </div>
+          {{^_disableAffix}}
+          {{>partials/affix}}
+          {{/_disableAffix}}
+        </div>
+      </div>
+      {{^_disableFooter}}
+      {{>partials/footer}}
+      {{/_disableFooter}}
+    </div>
+    {{>partials/scripts}}
+  </body>
+</html>
diff --git a/websites/site/lucenetemplate/partials/navbar.tmpl.partial b/websites/site/lucenetemplate/partials/navbar.tmpl.partial
index 3f4168b..ab8f519 100644
--- a/websites/site/lucenetemplate/partials/navbar.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/navbar.tmpl.partial
@@ -1,6 +1,5 @@
 {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
 
-<span id="forkongithub"><a href="https://github.com/apache/lucenenet">Fork me on GitHub</a></span>
 <nav id="autocollapse" class="navbar ng-scope" role="navigation">
   <div class="container">
     <div class="navbar-header">


[lucenenet] 04/08: website: Added fix for padding disappearing on gradient in the middle two viewport sizes

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 8b9afae03e797b95df23464437fbdce1c7cdd8ed
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 16:53:36 2020 +0700

    website: Added fix for padding disappearing on gradient in the middle two viewport sizes
---
 websites/site/lucenetemplate/styles/site.css | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/websites/site/lucenetemplate/styles/site.css b/websites/site/lucenetemplate/styles/site.css
index 78f4891..ce05225 100644
--- a/websites/site/lucenetemplate/styles/site.css
+++ b/websites/site/lucenetemplate/styles/site.css
@@ -112,6 +112,20 @@ pre.clean {
   margin: 0 0 10px;
   margin-bottom: 2rem;
 }
+/* hack for issue with padding disappearing in middle 2 sizes */
+@media screen and (max-width: 1200px) {
+  #intro .container {
+    padding-top: 50px;
+  }
+}
+@media screen and (max-width: 750px) {
+  #intro {
+    margin-top: 0px;
+  }
+  #intro .container {
+    padding-top: 0px;
+  }
+}
 
 .project-links {
   margin-top: 20px;


[lucenenet] 08/08: apidocs: Updated Powershell script to allow passing in the staging port

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit d633dc604f7c61771b40542a2eb076b5d89d8f9a
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 19:34:12 2020 +0700

    apidocs: Updated Powershell script to allow passing in the staging port
---
 websites/apidocs/docs.ps1 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/websites/apidocs/docs.ps1 b/websites/apidocs/docs.ps1
index 0cde7e9..fd42cf0 100644
--- a/websites/apidocs/docs.ps1
+++ b/websites/apidocs/docs.ps1
@@ -29,7 +29,9 @@ param (
     [Parameter(Mandatory = $false)]
     [string] $LogLevel = 'Warning',
     [Parameter(Mandatory = $false)]
-    [string] $BaseUrl = 'http://localhost:8080'
+    [string] $BaseUrl = 'http://localhost:8080',
+    [Parameter(Mandatory = $false)]
+    [int] $StagingPort = 8080
 )
 
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@@ -225,7 +227,7 @@ if ($?) {
     else {
         # build + serve (for testing)
         Write-Host "starting website..."
-        & $DocFxExe $DocFxJsonSite --log "$DocFxLog" --loglevel $LogLevel --serve --debug
+        & $DocFxExe $DocFxJsonSite --log "$DocFxLog" --loglevel $LogLevel --serve --port $StagingPort --debug
     }
 }
 


[lucenenet] 06/08: website: Updated Powershell script to allow passing in the staging port

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 0fa692b54db7082378cf16c283f2cf9b2f20576c
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 19:30:13 2020 +0700

    website: Updated Powershell script to allow passing in the staging port
---
 websites/site/site.ps1 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/websites/site/site.ps1 b/websites/site/site.ps1
index fa92914..0bac019 100644
--- a/websites/site/site.ps1
+++ b/websites/site/site.ps1
@@ -27,7 +27,10 @@ param (
 	# LogLevel can be: Diagnostic, Verbose, Info, Warning, Error
 	[Parameter(Mandatory=$false)]
 	[string]
-	$LogLevel = 'Info'
+	$LogLevel = 'Info',
+	[Parameter(Mandatory=$false)]
+	[int]
+	$StagingPort = 8081
 )
 
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@@ -81,6 +84,6 @@ if($?) {
 	else {
 		# build + serve (for testing)
 		Write-Host "starting website..."
-		& $DocFxExe $DocFxJson --serve --port 8081
+		& $DocFxExe $DocFxJson --serve --port $StagingPort
 	}
 }
\ No newline at end of file


[lucenenet] 07/08: website: added Google ads

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 0bdae67be839db764cb0f8ec4672010f676996aa
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 19:32:48 2020 +0700

    website: added Google ads
---
 websites/site/docfx.json                                        | 3 ++-
 websites/site/lucenetemplate/ads.txt                            | 1 +
 websites/site/lucenetemplate/partials/head-content.tmpl.partial | 1 +
 websites/site/lucenetemplate/partials/head.tmpl.partial         | 1 +
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/websites/site/docfx.json b/websites/site/docfx.json
index d37ec8d..340d65b 100644
--- a/websites/site/docfx.json
+++ b/websites/site/docfx.json
@@ -23,7 +23,8 @@
       },
       {
         "files": [
-          "doap_Lucene_Net.rdf"
+          "doap_Lucene_Net.rdf",
+          "ads.txt"
         ],
         "src": "lucenetemplate"
       }
diff --git a/websites/site/lucenetemplate/ads.txt b/websites/site/lucenetemplate/ads.txt
new file mode 100644
index 0000000..1979b65
--- /dev/null
+++ b/websites/site/lucenetemplate/ads.txt
@@ -0,0 +1 @@
+google.com, pub-3370160606703795, DIRECT, f08c47fec0942fa0
\ No newline at end of file
diff --git a/websites/site/lucenetemplate/partials/head-content.tmpl.partial b/websites/site/lucenetemplate/partials/head-content.tmpl.partial
index e95c2d6..dfbee2c 100644
--- a/websites/site/lucenetemplate/partials/head-content.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/head-content.tmpl.partial
@@ -21,6 +21,7 @@
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.0/css/academicons.min.css" integrity="sha512-GGGNUPDhnG8LEAEDsjqYIQns+Gu8RBs4j5XGlxl7UfRaZBhCCm5jenJkeJL8uPuOXGqgl8/H1gjlWQDRjd3cUQ==" crossorigin="anonymous">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==" crossorigin="anonymous">
   
+  <script data-ad-client="ca-pub-3370160606703795" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
   <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather%7CRoboto+Mono">
   <link rel="stylesheet" href="/styles/site.css">
 
diff --git a/websites/site/lucenetemplate/partials/head.tmpl.partial b/websites/site/lucenetemplate/partials/head.tmpl.partial
index 2a02a27..a6d0aee 100644
--- a/websites/site/lucenetemplate/partials/head.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/head.tmpl.partial
@@ -18,6 +18,7 @@
   {{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
   {{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
 
+  <script data-ad-client="ca-pub-3370160606703795" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
   <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather%7CRoboto+Mono">
   <link rel="stylesheet" href="/styles/site.css">