Comments (5)
Site updated to include search page. Am leaving it standalone rather than incorporated into the UI at the moment. If there's demand for it we can look at updating the UI design to include a search element. :)
from nsubstitute.
Any reason, why it is still not implemented? When I already have Nsubstitute documentation site https://nsubstitute.github.io opened and want to find some keyword, I had to open Google to search item on your site. It will be good to have search function on your docs site.
from nsubstitute.
@MNF No good reason. Thanks for reminding me of this. 👍
If you have any time free would you be able to take a look at this? The docs can be a bit tricky to work with (https://github.com/nsubstitute/NSubstitute/wiki/Working-with-documentation), but if you could post some HTML/CSS somewhere I'm happy to incorporate it into the templates from there. Otherwise I'll try to get this done when I'm next working on documentation changes.
from nsubstitute.
@MNF Can you give me some examples of keywords you've searched for?
I've been playing around with a Google Custom Search Engine but not sure how useful the results are for such a relatively small amount of content. (You can try it out here.) We may be better off with Lunr.js as described in posts like this, so we can exclude the navigation areas from the indexed page data.
For my reference, here's the sample post page I was trying out:
---
title: Search
layout: post
---
<script>
(function() {
var cx = '005697633880271604295:lw9srlgcpg8';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
Also need some help on where to shove a search box into the site and a nice style for it from someone who isn't horrible at design. 😄
from nsubstitute.
As examples of keywords, last time I wanted to find information about new Configure() extension , sometime in the past I wanted "Received() example".
Your Google Custom Search results looks good for me.
Quickly browsing Lunr.js documentation I noticed that they are working with JavaScript objects and do not parse/index html pages out of the box.
Sorry, but I am not good with UI design either.
from nsubstitute.
Related Issues (20)
- How to name a satellite nuget package designed to work with NSubstitute? HOT 7
- Argument matcher for a struct with a field with non-default value HOT 3
- How to argument match the generic parameter of a Func<T> with generic constraints?
- Arg.Is<object[]> is not working as expected HOT 2
- NSubstitute makes it impossible to unit test memory leaks HOT 4
- NSubstitute Received() verifies different function in substite. HOT 2
- Proposition: Mark as unlisted and Deprecated some old versions HOT 4
- Library is not compatible with .NET MAUI 8.0.6 HOT 4
- How can I pass event args to event with Func<TEventArgs, Task>? HOT 2
- Add ability to capture and verify on an argument at the same time HOT 1
- Provide more intuitive methods HOT 3
- NSubstitute.Exceptions.SubstituteInternalException HOT 1
- IMemoryCache TryGetValue mocking not working HOT 2
- Unable to match arguments whose type is generic, when their concrete type is not known HOT 1
- Arg.Any<Arg.AnyType>() does not match arguments passed by reference
- Provide a way to pass null for custom event args so that Raise.EventWith can be used to raise events for custom event args without a default constructor
- I can't test code that has dbcontext.SomeEntity.SingleOrDefault() HOT 2
- I'm receiving NSubstitute.Exceptions.NotASubstituteException when I shouldn't HOT 3
- Need to release 5.2.0 HOT 6
- Configured calls to 'hidden' properties are not matched HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsubstitute.