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/11/01 15:46:35 UTC

[lucenenet] branch master updated (146d7d0 -> 9bee5f2)

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 146d7d0  website: Added target="_blank" to Fork me on GitHub
     new c26e4ca  Revert "website: added Google ads"
     new e6c26c3  website: Update path to use machine-level folder instead of user-level folder
     new 9df13ad  website: Changed home page example to use Console.WriteLine() instead of 3rd party LinqPad Dump() method.
     new dd49019  website: Updated home page example to exclude unnecessary variable for Environment.SpecialFolder enumeration value
     new 9bee5f2  website: Added target="_blank" to Fork me on GitHub (home page)

The 5 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/site/docfx.json                              |  3 +--
 websites/site/lucenetemplate/ads.txt                  |  1 -
 websites/site/lucenetemplate/index.html.tmpl          |  2 +-
 .../lucenetemplate/partials/head-content.tmpl.partial |  1 -
 .../site/lucenetemplate/partials/head.tmpl.partial    |  1 -
 .../partials/home-quick-start.tmpl.partial            | 19 ++++++++++++-------
 6 files changed, 14 insertions(+), 13 deletions(-)
 delete mode 100644 websites/site/lucenetemplate/ads.txt


[lucenenet] 01/05: Revert "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 c26e4caf94677be24343f44d9fa49612075ca8d2
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Nov 1 20:32:21 2020 +0700

    Revert "website: added Google ads"
    
    This reverts commit 0bdae67be839db764cb0f8ec4672010f676996aa.
---
 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, 1 insertion(+), 5 deletions(-)

diff --git a/websites/site/docfx.json b/websites/site/docfx.json
index 340d65b..d37ec8d 100644
--- a/websites/site/docfx.json
+++ b/websites/site/docfx.json
@@ -23,8 +23,7 @@
       },
       {
         "files": [
-          "doap_Lucene_Net.rdf",
-          "ads.txt"
+          "doap_Lucene_Net.rdf"
         ],
         "src": "lucenetemplate"
       }
diff --git a/websites/site/lucenetemplate/ads.txt b/websites/site/lucenetemplate/ads.txt
deleted file mode 100644
index 1979b65..0000000
--- a/websites/site/lucenetemplate/ads.txt
+++ /dev/null
@@ -1 +0,0 @@
-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 dfbee2c..e95c2d6 100644
--- a/websites/site/lucenetemplate/partials/head-content.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/head-content.tmpl.partial
@@ -21,7 +21,6 @@
   <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 a6d0aee..2a02a27 100644
--- a/websites/site/lucenetemplate/partials/head.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/head.tmpl.partial
@@ -18,7 +18,6 @@
   {{#_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">
 


[lucenenet] 02/05: website: Update path to use machine-level folder instead of user-level folder

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 e6c26c338eb342f4335e64234e5582e9eb134cc1
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Nov 1 20:39:42 2020 +0700

    website: Update path to use machine-level folder instead of user-level folder
---
 websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index adc85fd..ef89a38 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -9,8 +9,8 @@
 const LuceneVersion AppLuceneVersion = LuceneVersion.LUCENE_48;
 
 // Construct a machine-independent path for the index
-var personalFolder = Environment.SpecialFolder.Personal;
-var basePath = Environment.GetFolderPath(personalFolder);
+var appDataFolder = Environment.SpecialFolder.CommonApplicationData;
+var basePath = Environment.GetFolderPath(appDataFolder);
 var indexPath = Path.Combine(basePath, "index");
 
 using var dir = FSDirectory.Open(indexPath);


[lucenenet] 03/05: website: Changed home page example to use Console.WriteLine() instead of 3rd party LinqPad Dump() method.

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 9df13addcbb74a44f65fc72485db287465eb03c1
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Nov 1 22:15:06 2020 +0700

    website: Changed home page example to use Console.WriteLine() instead of 3rd party LinqPad Dump() method.
---
 .../lucenetemplate/partials/home-quick-start.tmpl.partial   | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index ef89a38..6bcead6 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -69,12 +69,17 @@ var phrase = new MultiPhraseQuery
 using var reader = writer.GetReader(applyAllDeletes: true);
 var searcher = new IndexSearcher(reader);
 var hits = searcher.Search(phrase, 20 /* top 20 */).ScoreDocs;
+
+// Display the output in a table
+Console.WriteLine($"{"Score",10}" +
+    $" {"Name",-15}" +
+    $" {"Favorite Phrase",-40}");
 foreach (var hit in hits)
 {
-&nbsp;&nbsp;&nbsp;&nbsp;var foundDoc = searcher.Doc(hit.Doc);
-&nbsp;&nbsp;&nbsp;&nbsp;hit.Score.Dump("Score");
-&nbsp;&nbsp;&nbsp;&nbsp;foundDoc.Get("name").Dump("Name");
-&nbsp;&nbsp;&nbsp;&nbsp;foundDoc.Get("favoritePhrase").Dump("Favorite Phrase");
+    var foundDoc = searcher.Doc(hit.Doc);
+    Console.WriteLine($"{hit.Score:f8}" +
+        $" {foundDoc.Get("name"),-15}" +
+        $" {foundDoc.Get("favoritePhrase"),-40}");
 }
 </code>
 </pre>


[lucenenet] 04/05: website: Updated home page example to exclude unnecessary variable for Environment.SpecialFolder enumeration value

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 dd4901917c7ffd25cf739aa7dd7dcff73679a966
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Nov 1 22:28:20 2020 +0700

    website: Updated home page example to exclude unnecessary variable for Environment.SpecialFolder enumeration value
---
 websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index 6bcead6..8e9bc40 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -5,12 +5,12 @@
 <p class="text-center">Create an index and define a text analyzer</p>
 <pre class="clean">
 <code class="csharp">
-// Ensures index backwards compatibility
+// Ensures index backward compatibility
 const LuceneVersion AppLuceneVersion = LuceneVersion.LUCENE_48;
 
 // Construct a machine-independent path for the index
-var appDataFolder = Environment.SpecialFolder.CommonApplicationData;
-var basePath = Environment.GetFolderPath(appDataFolder);
+var basePath = Environment.GetFolderPath(
+    Environment.SpecialFolder.CommonApplicationData);
 var indexPath = Path.Combine(basePath, "index");
 
 using var dir = FSDirectory.Open(indexPath);


[lucenenet] 05/05: website: Added target="_blank" to Fork me on GitHub (home page)

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 9bee5f2e88ca29bdca5adeff179772971bb68faf
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Nov 1 22:43:14 2020 +0700

    website: Added target="_blank" to Fork me on GitHub (home page)
---
 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 954f3d8..489bc93 100644
--- a/websites/site/lucenetemplate/index.html.tmpl
+++ b/websites/site/lucenetemplate/index.html.tmpl
@@ -8,7 +8,7 @@
 <html lang="en">
   {{>partials/head-content}}
   <body id="homepage" data-spy="scroll" data-target="#affix">
-  <span id="forkongithub"><a href="https://github.com/apache/lucenenet">Fork me on GitHub</a></span>
+  <span id="forkongithub"><a href="https://github.com/apache/lucenenet" target="_blank">Fork me on GitHub</a></span>
     <div id="wrapper">
       <header>
         {{>partials/navbar}}