Comments (8)
That's a very good idea. I'd name it "stable" only instead of "latest".
We also should prevent any doc versions besides "stable" from being indexed: https://support.google.com/webmasters/answer/93710?hl=en
from mapstruct.org.
"stable" is also fine. Just to have something which is not linked to a specific version π.
I was also looking into the noindex
meta tags. For this we will have to add <meta name="robots" content="noindex" />
to the reference documentation during the generation. Should we do the same for the api documents as well?
I think that we will either need to add/remove the meta tags manually or make it configurable in our build, so they are either added or not added to the pages
from mapstruct.org.
Another alternative would be to use a robots.txt
- we wouldn't have to alter the html files (there are a lot of them in the javadoc subdir), but that wouldn't make google forget that it had the older versions indexed already. Not sure if that would be a problem, though.
from mapstruct.org.
I don't think we can have a robots.txt on GH Pages. AFAICS the way forward is to add the meta tag mentioned by filip to the non-stable reference guide and API docs. Ideally it's automated in some way.
from mapstruct.org.
Really? Don't the crawlers visit through www.mapstruct.org
and not via http://mapstruct.github.io/
or something?
But yes, we could add a script to add those headers to the older files as well...
from mapstruct.org.
I think that I found some way that we can add/remove the needed tags. I propose the following solution:
- We generate the api documentation and the reference documentation we are going to add
<meta name="robots" content="noindex" />
which will tell the crawlers not to index those sides. - We will have a stable folder where the stable version will be located, before we do the publish in our
publish.sh
we add this linefind public/documentation/stable -type f -name "*.html" | xargs sed -i '/<meta name="robots" content="noindex".*\/>/d'
before we do the commit
We will of course have to regenerate the documentation for 1.0.0.Final and 1.1.0.Final so we can add the noindex
meta tag.
WDYT? Should I make a PR proposition?
from mapstruct.org.
from mapstruct.org.
Closing; thanks, @filiphr!
from mapstruct.org.
Related Issues (20)
- Mapping fields to nested object using custom method HOT 5
- Add a more prominent link to the GitHub project HOT 3
- Add information about Lombok Mapstruct Binding Module to Mapstruct documentation HOT 1
- IDE Support: VScode HOT 1
- Broken links in TOC of MapStruct site FAQ HOT 3
- defaultValue is not work. how to fix it ; HOT 2
- How to copy attributes of the same class using Mapstruct HOT 1
- Do I have to use Mapstruct with Lombok? I didn't introduce Lombok into my project. I wrote get and set manually, but it reminded me that I couldn't find attributes. HOT 2
- Other languages support HOT 4
- A syntax errorοΌ
- Link to technical documentation is broken HOT 3
- mapstruct-jdk8 homepage link incorrect in pom.xml HOT 1
- java.lang.ClassNotFoundException: Cannot find implementation for HOT 1
- cannot generate the implementation for eclipse HOT 4
- Correct reference guide links HOT 6
- final value containers HOT 1
- How to Map to Generic Type? HOT 1
- plexus-contaner-default should be removed
- Use latest version of Hugo
- eclipse HOT 1
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 mapstruct.org.